Skip to content

Commit

Permalink
fix(api): reads START_JOB_IN_WEB_PROCESS as Boolean
Browse files Browse the repository at this point in the history
Co-authored-by: Laura Bergoens <[email protected]>
  • Loading branch information
nlepage and laura-bergoens committed Dec 4, 2024
1 parent 0523712 commit 8e8c147
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ process.on('SIGINT', () => {
(async () => {
try {
await start();
if (process.env.START_JOB_IN_WEB_PROCESS) {
if (config.infra.startJobInWebProcess) {
import('./worker.js');
}
} catch (error) {
Expand Down
1 change: 1 addition & 0 deletions api/src/shared/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ const configuration = (function () {
process.env.INFRA_CHUNK_SIZE_ORGANIZATION_LEARNER_DATA_PROCESSING,
1000,
),
startJobInWebProcess: toBoolean(process.env.START_JOB_IN_WEB_PROCESS),
},
jwtConfig: {
livretScolaire: {
Expand Down

0 comments on commit 8e8c147

Please sign in to comment.