Order of tasks in GroupAggregation #571
Unanswered
PolamarasettyRohitha
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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