Closed netshy closed 3 years ago
Hello @netshy, checked your problem and I have the same issue!
We found answer and it was in README :)
If you will set once={'timeout':5}
redis set PTTL in milliseconds.
@shared_task(name='test_redis_time_limit_lock', base=QueueOnce, once={'timeout':5})
def test_redis_time_limit_lock():
import time
time.sleep(10)
return 'Its okey'
Hi, thanks for your work!
I noticed this behavior in the library, if you specify time_limit (hard timeout) for a task in celery and it stops at this time (task.status=FAILURE), the key will not be removed from the redis.
Tell me how you can get around? Thank you!
celery==5.1.0 celery_once==3.0.1 redis-cli 6.2.1