[Fixed]-How we can add a new task in celery without stop celery instance in django celery?

1👍

This is a link for what you want. You can set up crontab using admin interface of django.
There are two ways to start a task:

By scheduler, that will call the task every time period (10 seconds for example) or every particular time (like crontab do).
From code, in needed place and under needed conditions.
Launch task by scheduler
Go to admin page at address http://{host}/admin/djcelery/periodictask/ and press “Add periodic task”.

Fill fields as it is shown in screenshot below and press save.
enter image description here

Launch periodic task every 10 seconds

To indicate launch time instead of period, do the same, as in previous case, but fill Crontab (Interval must be blanked):
enter image description here

More detail at http://www.lexev.org/en/2014/django-celery-setup/

Leave a comment