added pako and te
This commit is contained in:
parent
f6a47f7a8c
commit
505565a09e
9 changed files with 62 additions and 3 deletions
29
apps/stock/data-ingestion/src/handlers/te/te.handler.ts
Normal file
29
apps/stock/data-ingestion/src/handlers/te/te.handler.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import {
|
||||
BaseHandler,
|
||||
Handler,
|
||||
Operation,
|
||||
ScheduledOperation,
|
||||
} from '@stock-bot/handlers';
|
||||
|
||||
@Handler('te')
|
||||
export class TeHandler extends BaseHandler {
|
||||
constructor(services: any) {
|
||||
super(services);
|
||||
}
|
||||
|
||||
@Operation('example-operation')
|
||||
async exampleOperation(): Promise<unknown> {
|
||||
this.logger.info('TE handler example operation executed');
|
||||
return { success: true };
|
||||
}
|
||||
|
||||
@ScheduledOperation('te-scheduled-job', '0 0 * * *', {
|
||||
priority: 5,
|
||||
description: 'Daily TE handler scheduled job',
|
||||
immediately: false,
|
||||
})
|
||||
async scheduledJob(): Promise<unknown> {
|
||||
this.logger.info('TE handler scheduled job executed');
|
||||
return this.exampleOperation();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue