Bootstrap FreeKB - OpenShift - Manually run cronjob
OpenShift - Manually run cronjob

Updated:   |  OpenShift articles

If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.

Let's say the oc get cronjobs (or oc get cj) command lists the following cron job.

NAMESPACE   NAME    SCHEDULE       SUSPEND   ACTIVE   LAST SCHEDULE   AGE
my-project  my-job  01 06 * * 1-6  False     0        21h             77d

 

The oc create job command can be used to manually run a cron job. 

oc create job --from cronjob/my-job my-job-manual-run

 

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 23db16 in the box below so that we can be sure you are a human.