We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0523712 + 8e8c147 commit af0eaa6Copy full SHA for af0eaa6
api/index.js
@@ -67,7 +67,7 @@ process.on('SIGINT', () => {
67
(async () => {
68
try {
69
await start();
70
- if (process.env.START_JOB_IN_WEB_PROCESS) {
+ if (config.infra.startJobInWebProcess) {
71
import('./worker.js');
72
}
73
} catch (error) {
api/src/shared/config.js
@@ -237,6 +237,7 @@ const configuration = (function () {
237
process.env.INFRA_CHUNK_SIZE_ORGANIZATION_LEARNER_DATA_PROCESSING,
238
1000,
239
),
240
+ startJobInWebProcess: toBoolean(process.env.START_JOB_IN_WEB_PROCESS),
241
},
242
jwtConfig: {
243
livretScolaire: {
0 commit comments