added initial batch decorator and fixed payload - still need to test batching
This commit is contained in:
parent
44c087aaae
commit
eff529a6ca
5 changed files with 57 additions and 6 deletions
|
|
@ -26,7 +26,12 @@ export class CeoHandler extends BaseHandler {
|
|||
priority: 5,
|
||||
immediately: false,
|
||||
description: 'Process unique CEO symbols and schedule individual jobs',
|
||||
payload: { action: 'get-posts' }
|
||||
payload: { action: 'get-posts' },
|
||||
batch: {
|
||||
size: 100,
|
||||
delayInHours: 1,
|
||||
priority: 10,
|
||||
}
|
||||
})
|
||||
updateUniqueSymbolsPosts = updateUniqueSymbols;
|
||||
|
||||
|
|
@ -35,9 +40,15 @@ export class CeoHandler extends BaseHandler {
|
|||
priority: 5,
|
||||
immediately: false,
|
||||
description: 'Process unique CEO symbols and schedule individual jobs',
|
||||
payload: { action: 'get-posts' }
|
||||
payload: { action: 'get-shorts' },
|
||||
batch: {
|
||||
size: 50,
|
||||
delayInHours: 2,
|
||||
priority: 8,
|
||||
direct: true, // Use direct mode for shorts
|
||||
}
|
||||
})
|
||||
updateUniqueSymbolsShots = updateUniqueSymbols;
|
||||
updateUniqueSymbolsShorts = updateUniqueSymbols;
|
||||
|
||||
@Operation('get-posts')
|
||||
getPosts = getPosts;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue