feat: persist blocked executor jobs

This commit is contained in:
john
2026-07-24 23:07:46 +08:00
parent d21c4849a9
commit bbb43f97a3
17 changed files with 649 additions and 26 deletions
+2 -1
View File
@@ -230,6 +230,7 @@ export function createInMemoryExecutorJobStore() {
const byId = new Map();
const byIdempotencyKey = new Map();
return {
kind: 'memory',
durable: false,
async getById(jobId) {
const value = byId.get(String(jobId ?? '').trim());
@@ -397,7 +398,7 @@ export function createExecutorGateway({
dispatchImplemented: EXECUTOR_DISPATCH_IMPLEMENTED,
executionEnabled: false,
store: {
kind: store.durable ? 'durable' : 'memory',
kind: String(store.kind ?? (store.durable ? 'durable' : 'memory')),
durable: store.durable === true,
},
adapters: registry.list(),