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
The flow_nums define the flows to which a task belongs.
Context:
Under normal conditions flow_nums = {1} # task belongs to the original flow.
Reflow tasks differ flow_nums = {2} # task belongs to a new flow.
When flows merge their numbers merge flow_nums = {1, 2} # flows 1 & 2 merged.
Triggered tasks are special cases flow_nums = {}.
Because flow_nums are a set order is not guaranteed. Consequently we should take care to serialise / deserialise flow_nums via a standard interface to ensure they always match.
If we don't sort the nums there is a risk that they could come out in a different order than they went in e.g. {2, 1} rather than {1, 2} which would break some internal comparison logic as well as making life harder for the UIs which would prefer one canonical form for each set.
Pull requests welcome!
The text was updated successfully, but these errors were encountered:
The
flow_nums
define the flows to which a task belongs.Because
flow_nums
are a set order is not guaranteed. Consequently we should take care to serialise / deserialiseflow_nums
via a standard interface to ensure they always match.Suggest the following:
If we don't sort the nums there is a risk that they could come out in a different order than they went in e.g.
{2, 1}
rather than{1, 2}
which would break some internal comparison logic as well as making life harder for the UIs which would prefer one canonical form for each set.Pull requests welcome!
The text was updated successfully, but these errors were encountered: