Skip to content

Commit

Permalink
Update default timings
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruikshanks committed Sep 17, 2024
1 parent 0edec45 commit add76ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ IMPORT_LICENCE_AGREEMENTS=false
WRLS_LOG_LEVEL=debug

# Use Cron type syntax to set timings for these background processes
WRLS_CRON_NALD='0 1 * * *'
WRLS_CRON_LICENCES='0 4 * * 1,2,3,4,5'
WRLS_CRON_RETURN_VERSIONS='0 6 * * 1,2,3,4,5'
WRLS_CRON_MOD_LOGS='0 7 * * 1,2,3,4,5'
WRLS_CRON_NALD='15 23 * * *'
WRLS_CRON_LICENCES='15 3 * * 1,2,3,4,5'
WRLS_CRON_RETURN_VERSIONS='15 7 * * 1,2,3,4,5'
WRLS_CRON_MOD_LOGS='30 7 * * 1,2,3,4,5'
WRLS_CRON_TRACKER='0 10 * * 1,2,3,4,5'
8 changes: 4 additions & 4 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ module.exports = {
nald: {
zipPassword: process.env.NALD_ZIP_PASSWORD,
path: process.env.S3_NALD_IMPORT_PATH || 'wal_nald_data_release',
schedule: process.env.WRLS_CRON_NALD || '0 1 * * *'
schedule: process.env.WRLS_CRON_NALD || '15 23 * * *'
},
licences: {
schedule: process.env.WRLS_CRON_LICENCES || '0 4 * * 1,2,3,4,5',
schedule: process.env.WRLS_CRON_LICENCES || '15 3 * * 1,2,3,4,',
// Note: these 2 flags need to be set to false for charging go-live
// to suspend the import of invoice accounts and licence agreements
// Update: I've changed those values to false ahead of the v2.0 charging
Expand All @@ -104,10 +104,10 @@ module.exports = {
isBillingDocumentRoleImportEnabled: false
},
modLogs: {
schedule: process.env.WRLS_CRON_MOD_LOGS || '0 7 * * 1,2,3,4,5'
schedule: process.env.WRLS_CRON_MOD_LOGS || '30 7 * * 1,2,3,4,5'
},
returnVersions: {
schedule: process.env.WRLS_CRON_RETURN_VERSIONS || '0 6 * * 1,2,3,4,5'
schedule: process.env.WRLS_CRON_RETURN_VERSIONS || '15 7 * * 1,2,3,4,5'
},
tracker: {
schedule: process.env.WRLS_CRON_TRACKER || '0 10 * * 1,2,3,4,5'
Expand Down

0 comments on commit add76ba

Please sign in to comment.