[Django]-Celery : Execute task after a specific time gap

40👍

You’ll want to make use of ETA. Read that section of the docs as it’ll have more information. However, your code will look something like this:

from datetime import datetime, timedelta
send_date = datetime.utcnow() + timedelta(days=2)
email_user.apply_async([user], eta=send_date)

Leave a comment