Skip to content Skip to sidebar Skip to footer

Celery Expires - Rise Exception

In docs link about expires # Task expires after one minute from now. add.apply_async(args=[10, 10], expires=60) I use: from tasks import add result = add.apply_async(args=[10, 10

Solution 1:

celeryd thinks your task has expired:

[2012-03-21 19:50:03,012: WARNING/MainProcess] Skipping revoked task: tasks.add[4ffcff91-b12b-4bce-8d47-159314759859]

When an expired task is picked up by a worker, it revokes it without executing. Check your timezone settings? I had the inverse problem: tasks weren't expiring when they should have. This fixed it for me:

CELERY_ENABLE_UTC = True
CELERY_TIMEZONE = 'Etc/UTC'

Post a Comment for "Celery Expires - Rise Exception"