[Fixed]-How to set up a celery delayed task from django view using rabbitmq queue

1👍

Use apply_async() with eta parameter (eta must be a datetime object, specifying an exact date and time, including millisecond precision and timezone information):

>>> from datetime import datetime, timedelta

>>> tomorrow = datetime.utcnow() + timedelta(days=1)
>>> multiply.apply_async((3, 5), eta=tomorrow)

More information in the celery docs here.

Leave a comment