Tornado celery integration hacks

后端 未结 4 1665
逝去的感伤
逝去的感伤 2020-12-08 05:44

Since nobody provided a solution to this post plus the fact that I desperately need a workaround, here is my situation and some abstract solutions/ideas for debate.

4条回答
  •  广开言路
    2020-12-08 06:12

    I stumbled upon this question and hitting the results backend repeatedly did not look optimal to me. So I implemented a Mixin similar to your Scenario 1 using Unix Sockets.

    It notifies Tornado as soon as the task finishes (to be accurate, as soon as next task in chain runs) and only hits results backend once. Here is the link.

提交回复
热议问题