This decorator forces the task to have only one running instance at a time through locks set using Redis. Use with binded tasks (@celery.task(bind=True)) - adapted from @Robpol86 code in order to retry the task if the lock is already acquired.
-
Notifications
You must be signed in to change notification settings - Fork 1
Celery task decorator used to force a task to have only one running instance at a time through locks set using Redis. Use with binded tasks (@celery.task(bind=True)) - adapted from @Robpol86 code
License
shadeimi/celery_single_instance
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Celery task decorator used to force a task to have only one running instance at a time through locks set using Redis. Use with binded tasks (@celery.task(bind=True)) - adapted from @Robpol86 code
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published