fix: same worker is transitive on nested flows

This commit is contained in:
Ruben Fiszel
2024-09-11 08:59:01 +02:00
parent 4720237091
commit decb4873f1
+3
View File
@@ -3511,6 +3511,9 @@ pub async fn push<'c, 'd, R: rsmq_async::RsmqConnection + Send + 'c>(
})?;
let priority = value.priority;
add_virtual_items_if_necessary(&mut value.modules);
if same_worker {
value.same_worker = true;
}
let cache_ttl = value.cache_ttl.map(|x| x as i32).clone();
let custom_concurrency_key = value.concurrency_key.clone();
let concurrency_time_window_s = value.concurrency_time_window_s.clone();