refactor workers

This commit is contained in:
Ruben Fiszel
2023-08-20 15:58:43 +02:00
parent 364ec3de5e
commit 580c4cf6ae
9 changed files with 983 additions and 851 deletions

View File

@@ -57,10 +57,10 @@ use crate::global_cache::{build_tar_and_push, pull_from_tar};
use crate::S3_CACHE_BUCKET;
use crate::{
common::{read_result, set_logs},
create_args_and_out_file, get_reserved_variables, handle_child, write_file,
AuthedClientBackgroundTask, DISABLE_NSJAIL, DISABLE_NUSER, HTTPS_PROXY, HTTP_PROXY,
LOCK_CACHE_DIR, NO_PROXY, NSJAIL_PATH, PATH_ENV, PIP_CACHE_DIR,
common::{get_reserved_variables, handle_child, read_result, set_logs},
create_args_and_out_file, write_file, AuthedClientBackgroundTask, DISABLE_NSJAIL,
DISABLE_NUSER, HTTPS_PROXY, HTTP_PROXY, LOCK_CACHE_DIR, NO_PROXY, NSJAIL_PATH, PATH_ENV,
PIP_CACHE_DIR,
};
pub async fn create_dependencies_dir(job_dir: &str) {