mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
chore: increase timeout for ungraceful restart
This commit is contained in:
parent
c8b63f8664
commit
3de75cc768
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue