sledge
sledge6d ago

Concurrency management for dedicated worker

I have a worker configured as a dedicated worker for one script. The goal is to make sure that this script is never executed in parallel with itself. I need all of its executions to run serially. Here is the concurrency graph for a receent set of runs. I'm a bit confused by the graph - as it looks like jobs are running in parallel. Maybe I also need to configure the script concurrency settings? How can I make sure that executions of this script will always wait on already-running executions to finish before starting? Note - I did check the worker ID of each of the executions in the graph - and they are all on the dedicated worker.
No description
3 Replies
rubenf
rubenf6d ago
dedicated workers only run one job at a time but they buffer pulling the job so it looks like they may be overlapping but they are not
sledge
sledgeOP6d ago
So if I have two jobs ... and they each take 20s and they are queued very close to each other ... will they each show 20s in their "ran in" statement ... or will their "runtime" also include their "pulled but waiting" time?
rubenf
rubenf6d ago
the latter

Did you find this page helpful?