refactor worker-common

This commit is contained in:
Ruben Fiszel
2023-08-20 16:44:22 +02:00
parent 1def1d3c66
commit c2d766028e
13 changed files with 131 additions and 106 deletions
@@ -57,10 +57,12 @@ use crate::global_cache::{build_tar_and_push, pull_from_tar};
use crate::S3_CACHE_BUCKET;
use crate::{
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,
common::{
create_args_and_out_file, get_reserved_variables, handle_child, read_result, set_logs,
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) {