mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 17:59:24 +02:00
Improve handling of exceptions which should trigger retrying an operation
This commit is contained in:
parent
21d7fa839f
commit
828399ec14
8 changed files with 285 additions and 134 deletions
|
@ -24,7 +24,7 @@ function startMainApp(env) {
|
|||
return new Promise((resolve, reject) => {
|
||||
const task = spawn('node', [initPath], {
|
||||
stdio: ['inherit', 'pipe', 'inherit'],
|
||||
env: { ...process.env, PORT: 0 /* random port */ }
|
||||
env: { ...process.env, PORT: 0 /* random port */, ...env }
|
||||
})
|
||||
|
||||
task.on('exit', () => reject(new Error('task terminated too early')))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue