mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-21 19:53:50 +01:00
Improve dead instances pruning
This fixes a couple edge cases in which inactive but working instances could be caught by the dead instances filter
This commit is contained in:
parent
0d28b07203
commit
7ed43b76b5
@ -40,7 +40,10 @@ export async function skippedInstances(
|
||||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.where("instance.isSuspended")
|
||||
.orWhere("instance.lastCommunicatedAt < :deadTime", { deadTime });
|
||||
.orWhere(new Brackets((qb) => {
|
||||
qb.where("instance.isNotResponding")
|
||||
.andWhere("instance.lastCommunicatedAt < :deadTime", { deadTime });
|
||||
}));
|
||||
}),
|
||||
)
|
||||
.select("host")
|
||||
|
Loading…
Reference in New Issue
Block a user