forked from mtusi2026/mtusi2026lab5
feat: add operator replay, fault injection scenarios and staging cleanup
This commit is contained in:
+1
-2
@@ -39,8 +39,7 @@ async function publishBatch(channel: ConfirmChannel): Promise<number> {
|
||||
logger.log(`published ${rows.length} job message(s), broker confirmed`);
|
||||
if (FAULT === 'exit-after-confirm') {
|
||||
logger.warn('fault injection: exit after broker confirm, before outbox is marked');
|
||||
process.kill(process.pid, 'SIGKILL');
|
||||
await sleep(60000);
|
||||
process.exit(137);
|
||||
}
|
||||
await tx.outboxEntry.updateMany({
|
||||
where: { id: { in: rows.map((row) => row.id) } },
|
||||
|
||||
Reference in New Issue
Block a user