How to stop/terminate Argo cron workflow?

991 Views Asked by At

In our requirement we need to connect to ARGO instance and take necessary actions on the jobs.

So we are consuming ARGO java apis to connect to argo instance and performing the actions like suspend,resume,retry....

But i am not able to find apis for stopping/terminating cron jobs.

So how can i stop/terminate the cron jobs ?

2

There are 2 best solutions below

1
On

There is no direct API for stopping/terminating cron jobs in ARGO. However, you can achieve the same using the ARGO API for getting the list of jobs and then deleting the job using the API for deleting a job.

0
On

You can terminate your Argo cron workflow using:

argo cron suspend CRON_WORKFLOW... [flags]

Check the https://argoproj.github.io/argo-workflows/cli/argo_cron_suspend/ for more info.

The second solution would be using Argo GUI for that:

Go to the 'Cron Workflows' section, look for the Cron that you are interested in and click 'Suspend' at the top. Argo GUI Suspend