feat: persist blocked executor jobs
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user