mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-07 10:17:42 +02:00
UBERF-9137: Fix Support for suspended installations (#7667)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -31,15 +31,23 @@ Analytics.setTag('application', 'github-service')
|
||||
|
||||
let doOnClose: () => Promise<void> = async () => {}
|
||||
|
||||
void start(metricsContext, loadBrandingMap(config.BrandingPath)).then((r) => {
|
||||
doOnClose = r
|
||||
})
|
||||
void start(metricsContext, loadBrandingMap(config.BrandingPath))
|
||||
.then((r) => {
|
||||
doOnClose = r
|
||||
})
|
||||
.catch((err) => {
|
||||
metricsContext.error('Error', { error: err })
|
||||
})
|
||||
|
||||
const onClose = (): void => {
|
||||
metricsContext.info('Closed')
|
||||
void doOnClose().then((r) => {
|
||||
process.exit(0)
|
||||
})
|
||||
void doOnClose()
|
||||
.then((r) => {
|
||||
process.exit(0)
|
||||
})
|
||||
.catch((err) => {
|
||||
metricsContext.error('Error', { error: err })
|
||||
})
|
||||
}
|
||||
|
||||
process.on('uncaughtException', (e) => {
|
||||
|
||||
Reference in New Issue
Block a user