I am trying to run a task with Celery. I follow these tutorials link
Everything was successfully configured. The fact is that I do not know how to complete the task. I launched celery, and he could not find this task. I want to know what exactly I need to call to complete the task and how I need to configure the task on the RabbitMQ server, django-admin .. I can not find any complete manuals about this.
Django, for example, contains a complete section on using Celery with RabbitMQ. There are also free tutorials or articles on the subject.
/tasks.py:
from celery import shared_task @shared_task def add(param1,param2) print("task")
:
from celery import current_app current_app.send_task("app.tasks.add", ["param1", "param2"])
This may help you understand how to start Celery.
It worked for me.
http://www.hiddentao.com/archives/2012/01/27/processing-long-running-django-tasks-using-celery-rabbitmq-supervisord-monit/
Source: https://habr.com/ru/post/1629505/More articles:Does PHP memory_limit provide pre-allocation of memory for PHP? - phpReact app error: `Uncaught TypeError: Unable to read property 'refs' of null` - javascriptException thrown as the target of the call - asp.net-mvcSpark removes duplicate rows from a DataFrame - scalaslackTextViewController inside MXSegmentedPager does not handle gestures to the right - iosAn exception is thrown for the purpose of the call - when creating the controller - asp.net-mvcWorking with a map 3d map - pythonGridView with different column widths in rows - androidThe exception was caused by the purpose of the call - vb.net - vb.netпараллельные, но разные вызовы шага работы slurm srun не работают - slurmAll Articles