Ordering tasks #572
Replies: 3 comments
-
|
The only thing you can do is to have one task schedule the next (or "change into" the next) |
Beta Was this translation helpful? Give feedback.
-
|
The problem is that jobs can come later than I schedule the first task. I don't know from the first place which tasks to run. They come from external services but I need to execute them in the receiving order. |
Beta Was this translation helpful? Give feedback.
-
|
I miss this feature too. Python has a cool library called procrastinate where we can set a lock key for each dispatched task which will be used to achieve a ordering mechanism |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m wondering if it’s possible to organize tasks similarly to how Kafka handles messages within topic partitions.
For example, when scheduling tasks like task1, task2, and task3, you could provide additional information (e.g., a key). The scheduler would then process the tasks sequentially: first completing task1, then task2, and finally task3, ensuring they are never executed in parallel or out of order.
Does anyone have any ideas?
Beta Was this translation helpful? Give feedback.
All reactions