Order of tasks in GroupAggregation #571
Unanswered
PolamarasettyRohitha
asked this question in
Q&A
Replies: 1 comment
-
|
I'm also dealing with same problem, is there any solution for it? Is it an expected result? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Group Aggregation is not preserving the order of tasks.
I enqueued few tasks under same group name, when they are executed, order of execution of those tasks was different from the order that were enqueued.
example:
Order of enqueue of tasks in a group:
{"UserID":0,"TemplateID":"some:template:id"}
{"UserID":1,"TemplateID":"some:template:id"}
{"UserID":2,"TemplateID":"some:template:id"}
{"UserID":3,"TemplateID":"some:template:id"}
{"UserID":4,"TemplateID":"some:template:id"}
{"UserID":5,"TemplateID":"some:template:id"}
when I process those tasks, the order of their execution is :
{"UserID":1,"TemplateID":"some:template:id"}
{"UserID":5,"TemplateID":"some:template:id"}
{"UserID":0,"TemplateID":"some:template:id"}
{"UserID":3,"TemplateID":"some:template:id"}
{"UserID":2,"TemplateID":"some:template:id"}
{"UserID":4,"TemplateID":"some:template:id"}
Is there a way to preserve order of tasks those are grouped.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions