fix behavior of disable nsjail and disable nuser
This commit is contained in:
@@ -698,7 +698,7 @@ print(res_json)
|
||||
|
||||
tx.commit().await?;
|
||||
let mut reserved_variables = get_reserved_variables(job, token, db).await?;
|
||||
if !disable_nuser {
|
||||
if !disable_nsjail {
|
||||
let _ = write_file(
|
||||
job_dir,
|
||||
"run.config.proto",
|
||||
@@ -718,7 +718,7 @@ print(res_json)
|
||||
workspace_id = %job.workspace_id,
|
||||
"started python code execution"
|
||||
);
|
||||
let child = if !disable_nuser {
|
||||
let child = if !disable_nsjail {
|
||||
Command::new(nsjail_path)
|
||||
.current_dir(job_dir)
|
||||
.env_clear()
|
||||
@@ -822,7 +822,7 @@ run();
|
||||
let mut reserved_variables = get_reserved_variables(job, token, db).await?;
|
||||
reserved_variables.insert("RUST_LOG".to_string(), "info".to_string());
|
||||
|
||||
if !disable_nuser {
|
||||
if !disable_nsjail {
|
||||
let _ = write_file(
|
||||
job_dir,
|
||||
"run.config.proto",
|
||||
|
||||
@@ -41,9 +41,11 @@
|
||||
x.forEach((y, j) => {
|
||||
if (`result` in y) {
|
||||
innerResults.push(y.result)
|
||||
$flowStateStore[i].childFlowModules![j].previewResults = JSON.parse(
|
||||
JSON.stringify(innerResults)
|
||||
)
|
||||
if ($flowStateStore[i].childFlowModules![j] != undefined) {
|
||||
$flowStateStore[i].childFlowModules![j].previewResults = JSON.parse(
|
||||
JSON.stringify(innerResults)
|
||||
)
|
||||
}
|
||||
}
|
||||
})
|
||||
resultsSoFar.push(innerResults)
|
||||
|
||||
Reference in New Issue
Block a user