Celery - How to send task from remote machine?

前端 未结 4 1874
庸人自扰
庸人自扰 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:07

    There are several ways to define routing rules, the most general of which is the custom router object. In all cases, the caller just provides a routing_key parameter in send_task, delay or apply_async and the router determines which queue to send the task into.

提交回复
热议问题