digdag
digdag copied to clipboard
[feature request] want a command to stop workflow schedules completely (not resumable)
We used digdag disable, and then digdag enable after a few days.
We noticed that all jobs during being disabled were enqueued accidently.
ref. https://qiita.com/shiozaki/items/d7ea6fe358da46bc13b5 (Japanese)
To avoid this accident, I prefer to
- have another command to disable schedule completely
- Or, have another command to purge enqueued jobs then enable
I feel that
-
digdag pauseshould behave like currentdigdag disable -
digdag disableshould behave like 1. -
digdag resumeshould behave like currentdigdag enable -
digdag enableshould behave like 2.
(although I know this change breaks backward compatibility, so is not acceptable)
My current workaround is to do as:
ids=$(digdag schedules | grep id | awk -F: '{print $2}')
echo "${ids}" | xargs -I{} digdag reschedule {} --skip-to "$(date '+%Y-%m-%d %H:%M:%S %z')"
then, digdag enable all projects.