mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
fix suspend + sleep with same worker
This commit is contained in:
+1
-2
@@ -1399,9 +1399,8 @@ pub async fn push<'c>(
|
||||
}
|
||||
};
|
||||
|
||||
let mut is_running = same_worker;
|
||||
let is_running = same_worker;
|
||||
if let Some(flow) = raw_flow.as_ref() {
|
||||
is_running = false;
|
||||
same_worker = same_worker || flow.same_worker;
|
||||
if flow.modules.len() == 0 {
|
||||
Err(Error::BadRequest(format!(
|
||||
|
||||
@@ -925,7 +925,7 @@ async fn push_next_flow_job(
|
||||
};
|
||||
|
||||
let continue_on_same_worker =
|
||||
flow.same_worker && !matches!(job_payload, JobPayload::RawFlow { .. });
|
||||
flow.same_worker && module.suspend.is_none() && module.sleep.is_none();
|
||||
|
||||
/* Finally, push the job into the queue */
|
||||
let tx = db.begin().await?;
|
||||
|
||||
Reference in New Issue
Block a user