forked from FoundKeyGang/FoundKey
server: skip instances that proclaimed themself dead via HTTP 410
Changelog: Fixed
This commit is contained in:
parent
ca90cedba0
commit
5b61941e4c
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ export async function skippedInstances(hosts: Array<Instace['host']>): Array<Ins
|
||||||
})
|
})
|
||||||
.andWhere(new Brackets(qb => { qb
|
.andWhere(new Brackets(qb => { qb
|
||||||
.where('instance.isSuspended')
|
.where('instance.isSuspended')
|
||||||
.orWhere('instance.lastCommunicatedAt < :deadTime', { deadTime });
|
.orWhere('instance.lastCommunicatedAt < :deadTime', { deadTime })
|
||||||
|
.orWhere('instance.latestStatus = 410');
|
||||||
}))
|
}))
|
||||||
.select('host')
|
.select('host')
|
||||||
.getRawMany()
|
.getRawMany()
|
||||||
|
|
Loading…
Reference in a new issue