chore: increase timeout for ungraceful restart

This commit is contained in:
izzy 2025-11-03 10:30:39 +00:00
parent c8b63f8664
commit 3de75cc768
No known key found for this signature in database
GPG key ID: 5059F398521BB0F6

View file

@ -45,7 +45,7 @@ export class MaintenanceService extends BaseService {
?.close() // attempt graceful shutdown
.then(() => process.exit(7)); // then signal restart
// issue: close() seems to hang for API worker, so timeout after 1s
setTimeout(() => process.exit(7), 1000);
// in some exceptional circumstances, close() may hang
setTimeout(() => process.exit(7), 5000);
}
}