Skip to content

Commit

Permalink
Merge pull request #6607 from cclauss/cron-verification
Browse files Browse the repository at this point in the history
GitHub Action to verify successful completion of our cron jobs
  • Loading branch information
mekarpeles authored May 30, 2022
2 parents 34c6859 + 23e81da commit 09cc70a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cron_watcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# A GitHub Action to verify that certain Open Library cron jobs have completed successfully.
# Data dumps happen on the 1st day of the month so check on them on the 2nd day of the month.
# Partner dumps happen on the 17th day of the month so check on them on the 18th day of the month.
# Always check again two days later in case they needed to be re-run.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule

name: cron_watcher
on:
schedule: # At 3:45am on the 2nd, 4th, 18th, and 20th day of the month.
- cron: '45 3 2,4,18,20 * *' # https://cron.help
workflow_dispatch: # This job can also be run on-demand.
jobs:
cron_watcher:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- run: pip install internetarchive
- run: scripts/cron_watcher.py

0 comments on commit 09cc70a

Please sign in to comment.