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
when I set dynamic child as a dynamic block (let's call it nested dynamic block), then I set the downstream block of this nested dynamic block to reduced output, the next downstream block were executed multiple times, I think the number of execution is the same as the max number of child of the nested dynamic block. To avoid this, I create an intermediary dummy block that only accept the reduced output and return it immediately. After that, I set the actual downstream block as the downstream block of the intermediary dummy block. This way the intermediary block is executed multiple times while the actual downstream blocks are only executed once.
To reproduce
Create new pipeline
Create a new block A on the pipeline, set it as dynamic block and make sure the output is more than one element to ensure the bug reproduced.
Create a new block B as the child of block A, set it as dynamic block and make sure the output is more than one element to ensure the bug reproduced.
Create a new block C as the child of block B, set it as reduced output and make sure it has an output
Create a new block D as the child of block C. This block will be executed depends on the number of max child of block B
A (Dynamic) --> B (Dynamic, Dynamic Child) --> C (Reduced Output, Dynamic Child) --> D (this is executed multiple times)
Mage version
0.9.70
Describe the bug
when I set dynamic child as a dynamic block (let's call it nested dynamic block), then I set the downstream block of this nested dynamic block to reduced output, the next downstream block were executed multiple times, I think the number of execution is the same as the max number of child of the nested dynamic block. To avoid this, I create an intermediary dummy block that only accept the reduced output and return it immediately. After that, I set the actual downstream block as the downstream block of the intermediary dummy block. This way the intermediary block is executed multiple times while the actual downstream blocks are only executed once.
To reproduce
A
on the pipeline, set it as dynamic block and make sure the output is more than one element to ensure the bug reproduced.B
as the child of blockA
, set it as dynamic block and make sure the output is more than one element to ensure the bug reproduced.C
as the child of blockB
, set it as reduced output and make sure it has an outputD
as the child of blockC
. This block will be executed depends on the number of max child of blockB
A (Dynamic) --> B (Dynamic, Dynamic Child) --> C (Reduced Output, Dynamic Child) --> D (this is executed multiple times)
Expected behavior
Block
D
should only be executed once.Screenshots
No response
Operating system
No response
Additional context
Slack Thread
The text was updated successfully, but these errors were encountered: