Skip to content

Commit 67ccaec

Browse files
authored
stagger times (#11159)
Stagger the cron job times based on [this table](https://github.com/dotnet/docs-tools/tree/main/actions/sequester#staggering-times). Also, prevent the "nightly" run on the one night per month that the "full lookback" runs. These changes minimize the chances of rate limit errors.
1 parent d09e3ec commit 67ccaec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/quest-bulk.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: "bulk quest import"
22
on:
33
schedule:
4-
- cron: '0 10 * * *' # UTC time, that's 5:00 am EST, 2:00 am PST.
5-
- cron: '0 9 6 * *' # This is the morning of the 6th.
4+
- cron: '30 10 1-5,7-31 * *' # UTC time, that's 5:30 am EST, 2:30 am PST.
5+
- cron: '30 10 6 * *' # This is the morning of the 6th.
66
workflow_dispatch:
77
inputs:
88
reason:
@@ -50,4 +50,4 @@ jobs:
5050
org: ${{ github.repository_owner }}
5151
repo: ${{ github.repository }}
5252
issue: '-1'
53-
duration: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.duration || github.event.schedule == '0 9 6 * *' && -1 || 5 }}
53+
duration: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.duration || github.event.schedule == '30 10 6 * *' && -1 || 5 }}

0 commit comments

Comments
 (0)