Skip to content

Commit af0eaa6

Browse files
[BUGFIX] Lire la variable d’env START_JOB_IN_WEB_PROCESS comme booléen
#10713
2 parents 0523712 + 8e8c147 commit af0eaa6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ process.on('SIGINT', () => {
6767
(async () => {
6868
try {
6969
await start();
70-
if (process.env.START_JOB_IN_WEB_PROCESS) {
70+
if (config.infra.startJobInWebProcess) {
7171
import('./worker.js');
7272
}
7373
} catch (error) {

api/src/shared/config.js

+1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ const configuration = (function () {
237237
process.env.INFRA_CHUNK_SIZE_ORGANIZATION_LEARNER_DATA_PROCESSING,
238238
1000,
239239
),
240+
startJobInWebProcess: toBoolean(process.env.START_JOB_IN_WEB_PROCESS),
240241
},
241242
jwtConfig: {
242243
livretScolaire: {

0 commit comments

Comments
 (0)