How to submit a cron-workflow? #5760
-
|
We can see submit button in the ArgoUI,but I can't find a way to submit a cron-workflow right now through api, do you have any ideas? I think I can update the schedule time from '00 09 * * *' to now time + 2s, then the workflow will start after 2s, after then, I will update the schedule time from now time + 2s to '00 09 * * *' back. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
The timing to trigger workflows from a CronWorkflow depends on the schedule you specify. So you should be able to specify any schedule you want and wait until the next scheduled time. Once a new workflow is triggered, you may suspend the CronWorkflow from triggering new workflows from the UI. Alternatively, you can manually trigger new workflows from an existing CronWorkflow resource via Argo CLI: |
Beta Was this translation helpful? Give feedback.
-
|
Hi @terrytangyuan, is there a way to do the same via the Argo workflows Rest API? There are some restrictions that I want to follow while being able to this:
|
Beta Was this translation helpful? Give feedback.

The timing to trigger workflows from a CronWorkflow depends on the schedule you specify. So you should be able to specify any schedule you want and wait until the next scheduled time. Once a new workflow is triggered, you may suspend the CronWorkflow from triggering new workflows from the UI.
Alternatively, you can manually trigger new workflows from an existing CronWorkflow resource via Argo CLI: