fix: improve priority for child jobs ran from api

This commit is contained in:
Ruben Fiszel
2025-11-06 19:08:59 +00:00
parent 1a478483c0
commit b60f7e87b8
+2 -1
View File
@@ -4226,7 +4226,8 @@ pub async fn run_script_by_path_inner(
tag,
timeout,
None,
None,
// If the job has a parent job, set priority to 2 as it may be ran synchronously and block a current worker until being executed. Flow steps have a priority of 1 so this is higher.
if run_query.parent_job.is_some() || run_query.root_job.is_some() { Some(2) } else { None },
push_authed.as_ref(),
false,
None,