need to fix batching

This commit is contained in:
Boki 2025-06-24 23:20:00 -04:00
parent eff529a6ca
commit 7579afa3c3

View file

@ -23,28 +23,24 @@ export class CeoHandler extends BaseHandler {
@Operation('update-unique-symbols-posts') @Operation('update-unique-symbols-posts')
@ScheduledOperation('update-unique-symbols-posts', '30 * * * *', { @ScheduledOperation('update-unique-symbols-posts', '30 * * * *', {
priority: 5,
immediately: false, immediately: false,
description: 'Process unique CEO symbols and schedule individual jobs', description: 'Process unique CEO symbols and schedule individual jobs',
payload: { action: 'get-posts' }, payload: { action: 'get-posts' },
batch: { batch: {
size: 100, size: 100,
delayInHours: 1, delayInHours: 0.5,
priority: 10,
} }
}) })
updateUniqueSymbolsPosts = updateUniqueSymbols; updateUniqueSymbolsPosts = updateUniqueSymbols;
@Operation('update-unique-symbols-shorts') @Operation('update-unique-symbols-shorts')
@ScheduledOperation('update-unique-symbols-shorts', '0 0 * * *', { @ScheduledOperation('update-unique-symbols-shorts', '0 0 * * *', {
priority: 5,
immediately: false, immediately: false,
description: 'Process unique CEO symbols and schedule individual jobs', description: 'Process unique CEO symbols and schedule individual jobs',
payload: { action: 'get-shorts' }, payload: { action: 'get-shorts' },
batch: { batch: {
size: 50, size: 50,
delayInHours: 2, delayInHours: 2,
priority: 8,
direct: true, // Use direct mode for shorts direct: true, // Use direct mode for shorts
} }
}) })