Skip to content

FIX - Dynamic Fork (workflow as code) - #274

Merged
jmigueprieto merged 3 commits into
mainfrom
fix/wf-as-code-dynamic-fork-issue
Jan 14, 2025
Merged

FIX - Dynamic Fork (workflow as code) #274
jmigueprieto merged 3 commits into
mainfrom
fix/wf-as-code-dynamic-fork-issue

Conversation

@jmigueprieto

@jmigueprieto jmigueprieto commented Jan 14, 2025

Copy link
Copy Markdown

The DynamicForkTask in its current state is non-functional. It requires a "pre_fork_task" and the dynamic tasks and their inputs are supposed to be taken from its output.

It's not working and it's too rigid. It won't allow using an INLINE task (given how this task outputs the result), it won't allow setting the dynamic tasks and inputs in the task def itself, or take it from a workflow input.

TODO (in an upcoming PR)

  • When creating tasks it's just using task ref name. Task name should also be an option.
  • Tests + refactoring.

NOTES

  • I've tested this with this code and generated the correct workflow.
Screenshot 2025-01-14 at 15 42 54

… forces the user to pass a "pre_fork_task" from which the dynamic tasks and inputs are going to be taken from.

But, it's not working + it's rigid. It won't allow using an INLINE task for example (given how this task outputs the result), it won't allow to hardcode the dynamic inputs in the task def itself, or take it from a workflow input.
@jmigueprieto jmigueprieto self-assigned this Jan 14, 2025
Comment thread src/conductor/client/workflow/task/dynamic_fork_task.py
@jmigueprieto jmigueprieto changed the title (WIP) FIX Workflow As Code - Dynamic Fork FIX - Dynamic Fork (workflow as code) Jan 14, 2025
@jmigueprieto
jmigueprieto marked this pull request as ready for review January 14, 2025 18:47
@jmigueprieto
jmigueprieto requested review from a team, RamOrkes, c4lm and v1r3n January 14, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants