spring-cloud-dataflow
spring-cloud-dataflow copied to clipboard
Pause a scheduled task
It would be a nice feature to be able to "pause" a scheduled task i.e. do not run while it is paused.
A possible solution is to use the kubernetes api to patch the underlying cronjob with the spec.suspend: true flag. I appreciate that this would not pause a cronjob that is in progress.
An alternative might be to simply reflect the "paused" status on the front-end, with the user responsible for issuing the kubernetes command to patch the relevant cronjob.
Due to instability in the environments I work in, we sometimes have to pause the cronjobs - invariably we delete the schedule and then run it back in again at a later date. We are aware of the ability to patch the cronjob to suspend it, but it would a much easier process to be able to toggle it on the front-end.