Skip to content

Commit

Permalink
only run the adoption update on prod (#1594)
Browse files Browse the repository at this point in the history
it takes a lot of API calls and can always be run manually
  • Loading branch information
mwvolo authored Oct 31, 2024
1 parent 0d03a7e commit a347131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openstax/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@
('0 2 * * *', 'django.core.management.call_command', ['delete_resource_downloads']),
('0 6 * * *', 'django.core.management.call_command', ['update_resource_downloads']),
('0 0 8 * *', 'django.core.management.call_command', ['update_schools_and_mapbox']),
('0 0 * * *', 'django.core.management.call_command', ['update_opportunities']),
('0 10 * * *', 'django.core.management.call_command', ['update_partners']),
]

if ENVIRONMENT == 'prod':
CRONJOBS.append(('0 6 1 * *', 'django.core.management.call_command', ['check_redirects']))
CRONJOBS.append(('0 0 * * *', 'django.core.management.call_command', ['update_opportunities']))

CRONTAB_COMMAND_PREFIX = os.getenv('CRONTAB_COMMAND_PREFIX', '')
CRONTAB_COMMAND_SUFFIX = os.getenv('CRONTAB_COMMAND_SUFFIX', '')
Expand Down

0 comments on commit a347131

Please sign in to comment.