Skip to content

Commit

Permalink
add cronjob to run management command
Browse files Browse the repository at this point in the history
Like other cron job, the idea here is that we dont want to overwhelm
the resources so the cron jobs will run everyhour for a small
number of applications
  • Loading branch information
amitupreti committed Mar 13, 2023
1 parent 6e8bc84 commit 154549e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/production/etc/cron.d/physionet
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@

# auto reject pending credentialing applications in case the references don't respond
0 */1 * * * www-data env DJANGO_SETTINGS_MODULE=physionet.settings.production /physionet/python-env/physionet/bin/python3 /physionet/physionet-build/physionet-django/manage.py reject_pending_credentialing_applications

# auto reject pending registration applications for events after the event end date
0 */1 * * * www-data env DJANGO_SETTINGS_MODULE=physionet.settings.production /physionet/python-env/physionet/bin/python3 /physionet/physionet-build/physionet-django/manage.py reject_past_event_applications
3 changes: 3 additions & 0 deletions deploy/staging/etc/cron.d/physionet
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@

# auto reject pending credentialing applications in case the references don't respond
0 */1 * * * www-data env DJANGO_SETTINGS_MODULE=physionet.settings.staging /physionet/python-env/physionet/bin/python3 /physionet/physionet-build/physionet-django/manage.py reject_pending_credentialing_applications

# auto reject pending registration applications for events after the event end date
0 */1 * * * www-data env DJANGO_SETTINGS_MODULE=physionet.settings.production /physionet/python-env/physionet/bin/python3 /physionet/physionet-build/physionet-django/manage.py reject_past_event_applications

0 comments on commit 154549e

Please sign in to comment.