added initial batch decorator and fixed payload - still need to test batching

This commit is contained in:
Boki 2025-06-24 23:15:43 -04:00
parent 44c087aaae
commit eff529a6ca
5 changed files with 57 additions and 6 deletions

View file

@ -119,6 +119,8 @@ export class HandlerScanner {
priority: schedule.priority,
immediately: schedule.immediately,
description: schedule.description,
payload: schedule.payload,
batch: schedule.batch,
})),
};
@ -147,6 +149,8 @@ export class HandlerScanner {
priority: schedule.priority || 5,
immediately: schedule.immediately || false,
description: schedule.description || `${handlerName} ${schedule.operation}`,
payload: schedule.payload, // Include payload from decorator
batch: schedule.batch, // Include batch config from decorator
};
}),
};