[GH-ISSUE #640] [FEATURE REQUEST] Can you add a feature for task chaining? #2339

Open
opened 2026-03-15 20:10:20 +03:00 by kerem · 4 comments
Owner

Originally created by @gakkiismywife on GitHub (Apr 7, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/640

Originally assigned to: @hibiken on GitHub.

For example, task A needs to wait for task B to finish before starting, but they are pushed into the queue together.

Originally created by @gakkiismywife on GitHub (Apr 7, 2023). Original GitHub issue: https://github.com/hibiken/asynq/issues/640 Originally assigned to: @hibiken on GitHub. For example, task A needs to wait for task B to finish before starting, but they are pushed into the queue together.
Author
Owner

@bfwbbrj commented on GitHub (Apr 7, 2023):

Similar to #611. Imho, this can be handled in your ProcessTask. You can simply Enqueue task B after you are done with task A.

<!-- gh-comment-id:1499900560 --> @bfwbbrj commented on GitHub (Apr 7, 2023): Similar to #611. Imho, this can be handled in your `ProcessTask`. You can simply `Enqueue` task B after you are done with task A.
Author
Owner

@gakkiismywife commented on GitHub (Apr 11, 2023):

Similar to #611. Imho, this can be handled in your ProcessTask. You can simply Enqueue task B after you are done with task A.

Thanks for reply.
But this is just a simple example. If I had a lot of jobs need to sequential execution. Then I should enqueue like a link list.
I think this is not a good solution.

<!-- gh-comment-id:1503124463 --> @gakkiismywife commented on GitHub (Apr 11, 2023): > Similar to #611. Imho, this can be handled in your `ProcessTask`. You can simply `Enqueue` task B after you are done with task A. Thanks for reply. But this is just a simple example. If I had a lot of jobs need to sequential execution. Then I should enqueue like a link list. I think this is not a good solution.
Author
Owner

@sunxunkang commented on GitHub (Dec 21, 2023):

用machinery吧,这个框架功能实在是不全,而且目前看并不活跃

<!-- gh-comment-id:1865425565 --> @sunxunkang commented on GitHub (Dec 21, 2023): 用machinery吧,这个框架功能实在是不全,而且目前看并不活跃
Author
Owner

@xuyang2 commented on GitHub (Dec 29, 2023):

用machinery吧,这个框架功能实在是不全,而且目前看并不活跃

machinery 好像不支持 remove periodic task

https://github.com/RichardKnop/machinery/issues/676

<!-- gh-comment-id:1871753174 --> @xuyang2 commented on GitHub (Dec 29, 2023): > 用machinery吧,这个框架功能实在是不全,而且目前看并不活跃 machinery 好像不支持 remove periodic task https://github.com/RichardKnop/machinery/issues/676
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2339
No description provided.