Skip to content

Commit

Permalink
Add sync-user-data management command cron entries
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarson committed Jul 12, 2024
1 parent 7516334 commit 45a980b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions gregor_apps.cron
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# GREGOR_APPS crontab
MAILTO="[email protected]"
# nightly except sunday at 00:00
0 0 * * MON-SAT . /var/www/django/gregor_apps/gregor-apps-activate.sh; python manage.py run_anvil_audit --email [email protected] --errors-only >> cron.log 2>&1
0 0 * * MON-SAT . /var/www/django/gregor_apps/gregor-apps-activate.sh; python manage.py run_anvil_audit --email [email protected] --errors-only >> cron.log

# sunday night at 00:00
0 0 * * SUN . /var/www/django/gregor_apps/gregor-apps-activate.sh; python manage.py run_anvil_audit --email [email protected] >> cron.log 2>&1
0 0 * * SUN . /var/www/django/gregor_apps/gregor-apps-activate.sh; python manage.py run_anvil_audit --email [email protected] >> cron.log

# Nightly user data audit
0 2 * * * . /var/www/django/gregor_apps/gregor-apps-activate.sh; python manage.py sync-drupal-data --update --email [email protected] >> cron.log
7 changes: 5 additions & 2 deletions gregor_apps_dev.cron
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# GREGOR_APPS_DEV crontab - disabled by default
# can be enabled for testing.
# nightly except sunday at 00:00
# 0 0 * * MON-SAT . /var/www/django/gregor_apps/gregor-apps-dev-activate.sh; python manage.py run_anvil_audit --email [email protected] --errors-only >> cron.log 2>&1
# 0 0 * * MON-SAT . /var/www/django/gregor_apps_dev/gregor-apps-dev-activate.sh; python manage.py run_anvil_audit --email [email protected] --errors-only >> cron.log 2>&1

# sunday night at 00:00
# 0 0 * * SUN . /var/www/django/gregor_apps/gregor-apps-dev-activate.sh; python manage.py run_anvil_audit --email [email protected] >> cron.log 2>&1
# 0 0 * * SUN . /var/www/django/gregor_apps_dev/gregor-apps-dev-activate.sh; python manage.py run_anvil_audit --email [email protected] >> cron.log 2>&1

# sunday night at 01:00
# 0 1 * * SUN . /var/www/django/gregor_apps_dev/gregor-apps-dev-activate.sh; python manage.py run_anvil_audit --email [email protected] >> cron.log

0 comments on commit 45a980b

Please sign in to comment.