You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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