Skip to content

Commit a90f24a

Browse files
committed
add cronjob to run management command
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
1 parent 5c0fba4 commit a90f24a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

deploy/production/etc/cron.d/physionet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616

1717
# auto reject pending credentialing applications in case the references don't respond
1818
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
19+
20+
# auto reject pending registration applications for events after the event end date
21+
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

deploy/staging/etc/cron.d/physionet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616

1717
# auto reject pending credentialing applications in case the references don't respond
1818
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
19+
20+
# auto reject pending registration applications for events after the event end date
21+
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 commit comments

Comments
 (0)