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

Add CLI command to run a CronWorkflow on demand #1963

Closed
simster7 opened this issue Jan 14, 2020 · 1 comment · Fixed by #2003
Closed

Add CLI command to run a CronWorkflow on demand #1963

simster7 opened this issue Jan 14, 2020 · 1 comment · Fixed by #2003
Assignees
Labels
type/feature Feature request
Milestone

Comments

@simster7
Copy link
Member

simster7 commented Jan 14, 2020

E.g. argo cron run cron-wf-1. This will allow users to run CronWorkflows on demand and out of schedule.

Note: Since the cron CLI currently only manipulates CronWorkflow resources, we may not want to use it to submit a Workflow directly.

Options to implement this:

  1. Use argo cron run cron-wf-1. Implement by Geting the CronWorkflow resource, converting it to a Workflow object and calling util.SubmitWorkflow(...) directly from the CLI.
  2. Use argo cron run cron-wf-1. Implement by setting a flag in the CronWorkflow resource intended to instruct the cron controller to run the CronWorkflow immediately, after which the flag is reset to its resting state.
  3. Use argo submit --from=CronWorkflow/cron-wf-1. Implement by Geting the CronWorkflow resource, converting it to a Workflow object and calling util.SubmitWorkflow(...). Probably least desirable option because it would require adding the CronWorkflowInterface to the root command.
@simster7 simster7 added the type/feature Feature request label Jan 14, 2020
@simster7 simster7 self-assigned this Jan 14, 2020
@alexec alexec added this to the v2.6 milestone Feb 5, 2020
@alexec
Copy link
Contributor

alexec commented Feb 5, 2020

@simster7 I'm putting this in v2.6 so we can prioritize it alongside other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants