digdag icon indicating copy to clipboard operation
digdag copied to clipboard

[feature request] want a command to stop workflow schedules completely (not resumable)

Open sonots-zozo opened this issue 7 years ago • 1 comments

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

  1. have another command to disable schedule completely
  2. Or, have another command to purge enqueued jobs then enable

I feel that

  • digdag pause should behave like current digdag disable
  • digdag disable should behave like 1.
  • digdag resume should behave like current digdag enable
  • digdag enable should behave like 2.

(although I know this change breaks backward compatibility, so is not acceptable)

sonots-zozo avatar Feb 18 '19 11:02 sonots-zozo

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.

sonots avatar Feb 23 '19 18:02 sonots