-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce number of concurrent Jobs running at the same time #1004
Comments
Not just Job-specific - we should probably have similar enforcement for Git repository sync/refresh as well. |
Not to feature creep here, but job isolation tied to inventory would be great as well. |
This might be possible with a simple Redis lock and a check on task start. Also worth looking at for inspiration: https://github.com/steinitzu/celery-singleton |
Digging into this is tricky because of how we rely on the Ideas:
|
This is something that could be really useful for longer-running SSoT jobs. We have been facing issues where those have been accidentally run twice - best case one of them errors out, worst case is a different outcome then if only one was run. |
My implementation idea would be different to what Jathan had in mind when he first tackled this:
|
Environment
Proposed Functionality
As Austin the Network automation Engineer I want to be able to create a Nautobot Job that can be executed only once at a time.
If a second execution of the same Job is requested while the Job is already running, the new Job should be queued until the first one finishes.
Use Case
Some Jobs are accessing shared resources and if multiple Jobs are running at the same time it could result in some inconsistency.
Database Changes
Probably not
External Dependencies
No
The text was updated successfully, but these errors were encountered: