Skip to content

Commit

Permalink
[Updater] Add REDIS_PORT env variable to updater-worker and updater…
Browse files Browse the repository at this point in the history
…-scheduler
  • Loading branch information
valtterikantanen committed Feb 26, 2025
1 parent e3c2427 commit 99ff14b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions updater/sis-updater-scheduler/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports.LATEST_MESSAGE_RECEIVED_THRESHOLD = 1000 * 60 * 5
module.exports.REDIS_LAST_WEEKLY_SCHEDULE = 'LAST_WEEKLY_SCHEDULE'
module.exports.REDIS_LAST_PREPURGE_INFO = 'LAST_PREPURGE_INFO'
module.exports.REDIS_HOST = process.env.REDIS_HOST
module.exports.REDIS_PORT = process.env.REDIS_PORT || 6379

module.exports.EXIT_AFTER_IMMEDIATES = process.env.EXIT_AFTER_IMMEDIATES === 'yes'
module.exports.SCHEDULE_IMMEDIATE = process.env.SCHEDULE_IMMEDIATE?.split(',') || []
Expand Down
1 change: 1 addition & 0 deletions updater/sis-updater-worker/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports.SIS_PURGE_CHANNEL = 'SIS_PURGE_CHANNEL'
module.exports.MIGRATIONS_LOCK = 'MIGRATIONS_LOCK'
module.exports.PURGE_LOCK = 'PURGE_LOCK'
module.exports.REDIS_HOST = process.env.REDIS_HOST
module.exports.REDIS_PORT = process.env.REDIS_PORT || 6379
module.exports.REDIS_TOTAL_META_KEY = 'TOTAL_META'
module.exports.REDIS_TOTAL_STUDENTS_KEY = 'TOTAL_STUDENTS'
module.exports.REDIS_TOTAL_META_DONE_KEY = 'TOTAL_META_DONE'
Expand Down

0 comments on commit 99ff14b

Please sign in to comment.