Skip to content

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

Notifications You must be signed in to change notification settings

shadeimi/celery_single_instance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

celery single instance decorator

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.

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

No packages published

Languages