How to create N childs when main workflow running #171
Replies: 2 comments
-
It follows the same pattern as making multiple concurrent activities. |
Beta Was this translation helpful? Give feedback.
-
It seems to me that I did not convey the essence of the problem well. |
Beta Was this translation helpful? Give feedback.
-
Hi short question. Is it possible to create N numbers of child workflows.
I have something like this
` while (true) {
yield WorkflowStub::await(fn () => $this->userAssignedToCategoryFlag);
$this->userAssignedToCategoryFlag = false;
It create only 1 child but I would like to give the user the ability to create N child workflows while the main workflow is running.
In the code above, the loop executes only once even after removing the flags and additional code
Beta Was this translation helpful? Give feedback.
All reactions