Celery - How to send task from remote machine?

前端 未结 4 1876
庸人自扰
庸人自扰 2021-01-31 16:42

We have a server running celery workers and a Redis queue. The tasks are defined on that server.
I need to be able to call these tasks from a remote machine.
I know that

4条回答
  •  清歌不尽
    2021-01-31 17:02

    on the remote machine, start up celery with the broker_url pointing to the machine you want to run the tasks on. Then just submit the tasks (if you have specific queues to submit to, then add the appropriate routing keys).

提交回复
热议问题