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
feat: Add scripts and tests for task spawning and step execution in flow management
- Introduced collect_perf_data.sh for performance testing of large array handling
- Updated start_ready_steps function to handle empty map steps and initialize task states
- Added migration script to modify start_ready_steps for correct task spawning
- Created tests for map step message queueing, delayed message scheduling, and task spawning
- Ensured proper handling of initial_tasks, task indices, and step status transitions
- Included tests for both map and single steps to verify correct task creation and message
dispatching
Steps with `initial_tasks = 0` need immediate completion without task execution. When such a step completes, its dependents may become ready - and if those dependents are also taskless, they should complete immediately as well, creating a cascade effect.
6
+
7
+
Currently, this cascade doesn't happen, leaving taskless steps in a "ready but not completed" state.
8
+
9
+
## Current State
10
+
11
+
`start_ready_steps` currently contains logic to complete empty map steps (taskless), but:
12
+
- It only handles the immediate step, not cascading to dependents
13
+
- This logic is mixed with task spawning concerns
14
+
- It can't handle chains of taskless steps
15
+
16
+
This plan extracts that logic into a dedicated function and adds cascade capability.
0 commit comments