Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX - Dynamic Fork (workflow as code) #274

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

jmigueprieto
Copy link
Contributor

@jmigueprieto jmigueprieto commented Jan 14, 2025

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
@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 v1r3n, c4lm, a team and RamOrkes January 14, 2025 19:00
@jmigueprieto jmigueprieto merged commit 436585e into main Jan 14, 2025
1 check passed
@jmigueprieto jmigueprieto deleted the fix/wf-as-code-dynamic-fork-issue branch January 14, 2025 22:24
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.

3 participants