argoproj / argoproj/argo-workflows

Ability to submit a workflow template but also skipping sections

Open
#5,889 2 comments 0 reactions 0 assignees View on GitHub
area/workflow-templates
Dominant language
Go
Stars
17k
Forks
3.7k
Avg merge
1d 20h
Merged PRs (30d)
138

Description

# Summary

Add the ability to submit a workflow template but skip some tasks

What change needs making?

I think it might be straight forward to mutate the template here https://github.com/argoproj/argo-workflows/blob/master/cmd/argo/commands/submit.go#L222-L227 before its submitted to exclude some steps

# Use Cases

During development or sometimes during failure its handy to have the ability to start a workflow from a specific section *but* sometimes the dependency means you might need to execute Step 1, Step 5, Step 6 ... but you don't wish to execute Step 2,3,4 (for example).

By allowing submit to skip sections of the template you can craft a submit that allows the dependency to be resolved without needlessly running other sections of the workflow

---

**Message from the maintainers**:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

---

If this general idea is acceptable Id be happy to attempt the changes.

Contributor guide

Open the contributing guide

Research direction

Start in cmd/argo/commands/submit.go around lines 222-227, where the workflow template is prepared before submission. Define how users select sections to skip and how dependencies are handled, then verify that submission can run the requested steps without unnecessarily running the omitted ones.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
cli, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.