Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cron): add dst description #5679

Merged
merged 1 commit into from
Apr 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions docs/cron-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,39 @@ Currently only a single instance will be executed as a result of setting `starti

This setting can also be configured in tandem with `concurrencyPolicy` to achieve more fine-tuned control.

### Daylight Saving

Daylight Saving (DST) is taking into account when using timezone. This guarantees argo only schedule workflow once when the clock moves forward or back.

For example, with timezone set at `America/Los_Angeles`, we have daylight saving
- +1 hour (DST start) 2020-03-08 02:00:00

| cron | sequence | workflow execution time |
|------------|----------|-------------------------------|
| 59 1 * * * | 1 | 2020-03-08 01:59:00 -0800 PST |
| | 2 | 2020-03-09 01:59:00 -0700 PDT |
| | 3 | 2020-03-10 01:59:00 -0700 PDT |
| 0 2 * * * | 1 | 2020-03-09 02:00:00 -0700 PDT |
| | 2 | 2020-03-10 02:00:00 -0700 PDT |
| | 3 | 2020-03-11 02:00:00 -0700 PDT |
| 1 2 * * * | 1 | 2020-03-09 02:01:00 -0700 PDT |
| | 2 | 2020-03-10 02:01:00 -0700 PDT |
| | 3 | 2020-03-11 02:01:00 -0700 PDT |

- -1 hour (DST end) 2020-11-01 02:00:00

| cron | sequence | workflow execution time |
|------------|----------|-------------------------------|
| 59 1 * * * | 1 | 2020-11-01 01:59:00 -0700 PDT |
| | 2 | 2020-11-01 01:59:00 -0800 PST |
| | 3 | 2020-11-02 01:59:00 -0800 PST |
| 0 2 * * * | 1 | 2020-11-01 02:00:00 -0800 PST |
| | 2 | 2020-11-02 02:00:00 -0800 PST |
| | 3 | 2020-11-03 02:00:00 -0800 PST |
| 1 2 * * * | 1 | 2020-11-01 02:01:00 -0800 PST |
| | 2 | 2020-11-02 02:01:00 -0800 PST |
| | 3 | 2020-11-03 02:01:00 -0800 PST |

## Managing `CronWorkflow`

### CLI
Expand Down