Chain with a group of a single task #8991
Unanswered
edwardreed81
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
-
The workflow I'm constructing is relatively simple:
A setup task that executes, followed by a group of tasks that depend on the result of the setup task:
This works fine when
len(run_tasks) > 1
, but whenlen(run_tasks) == 1
, constructing the chain changes the second task in the chain to be a regular task, not a group. This means the result ofapply_async()
is a different type depending on the length ofrun_tasks
. If it is length 1, the result is anAsyncResult
, but if it is longer than 1, the result is aGroupResult
. This causes a problem with saving and restoring the result.Is this expected behavior? Seems like a group should remain a group no matter how many tasks are in it.
Beta Was this translation helpful? Give feedback.
All reactions