Now, I want to publish register
event to some special exchange, which I could use the celery to retrieve and process it remotely.
Actually, I have used the send_task
function to realize this, but it must pass the task_name
to indicate which task should execute and consumer it. So it seems not so perfectly for my target.
What I want just like that:
- Publish
register
message to certainExchange
; - Remote machine 1 subscribe this
topic
orroute_key
and catch the message, using is for executing task; - Remote machine 2- the same as machine 1 but execute another task- receive that (may be will need reply to certain
queue
)
For example, just like this workflow:
register:
- send_email
generate_info
......