cameronmaske / celery-once

Celery Once allows you to prevent multiple execution and queuing of celery tasks.
https://pypi.python.org/pypi/celery_once/
BSD 2-Clause "Simplified" License
661 stars 90 forks source link

Grjones use setnx for locking #67

Closed cameronmaske closed 6 years ago

cameronmaske commented 6 years ago

60 but add's extra documentation and countdown back to AlreadyQueued exception.

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 197


Changes Missing Coverage Covered Lines Changed/Added Lines %
celery_once/backends/redis.py 8 10 80.0%
<!-- Total: 9 11 81.82% -->
Files with Coverage Reduction New Missed Lines %
celery_once/helpers.py 1 97.5%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 189: -1.9%
Covered Lines: 149
Relevant Lines: 154

💛 - Coveralls
cameronmaske commented 6 years ago

Steps to remove existing keys for 1.0 -> 2.0 migration. NOTE: These are untested, use at your own risk.

This will list all celery-once key's (starting with the prefix qo_) then delete them...

redis-cli KEYS "qo_*" | xargs redis-cli DEL