Skip to content

Job Concurrency - When running, block all others. How? #20061

Discussion options

You must be logged in to vote

Hi @dinis-rodrigues, unfortunately this sort of concurrency limit is not supported in a convenient way at the moment -- all tag keys are treated equivalently, and so assuming there's only a single tag key (e.g. single_run_per_job), there's no way to have an instance of one specific job prevent all other jobs from running while still allowing any other combination of jobs to proceed in parallel.

Any solution here would need to have one distinct tag key per job, e.g. something like each job having {f"{job_name}_concurrency_tag": True}, and then the vacuum job would need to have all of those tags. This has obvious drawbacks, but is likely the only workaround at the moment.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@dinis-rodrigues
Comment options

Answer selected by dinis-rodrigues
Comment options

You must be logged in to vote
4 replies
@garethbrickman
Comment options

@bernardocortez
Comment options

@davidalbertonogueira
Comment options

@garethbrickman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: concurrency Related to controlling concurrent execution
5 participants