forked from mtusi2026/mtusi2026lab5
feat: add operator replay, fault injection scenarios and staging cleanup
This commit is contained in:
@@ -72,9 +72,8 @@ async function expireFailedStaging(
|
||||
): Promise<number> {
|
||||
const rows = await prisma.attachment.findMany({
|
||||
where: {
|
||||
status: 'failed',
|
||||
stagingKey: { not: null },
|
||||
updatedAt: { lt: new Date(before) },
|
||||
OR: [{ status: 'ready' }, { status: 'failed', updatedAt: { lt: new Date(before) } }],
|
||||
},
|
||||
select: { id: true, stagingKey: true },
|
||||
take: 500,
|
||||
|
||||
Reference in New Issue
Block a user