Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 280 Bytes

README.md

File metadata and controls

3 lines (2 loc) · 280 Bytes

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.