work on spider for te
This commit is contained in:
parent
505565a09e
commit
95b1381480
17 changed files with 485 additions and 28 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import type { Collection } from 'mongodb';
|
||||
import { createNamespacedCache } from '@stock-bot/cache';
|
||||
import { getLogger } from '@stock-bot/logger';
|
||||
import type {
|
||||
|
|
@ -11,6 +10,7 @@ import type {
|
|||
ServiceTypes,
|
||||
} from '@stock-bot/types';
|
||||
import { fetch } from '@stock-bot/utils';
|
||||
import type { Collection } from 'mongodb';
|
||||
// Handler registry is now injected, not imported
|
||||
import { createJobHandler } from '../utils/create-job-handler';
|
||||
|
||||
|
|
@ -18,6 +18,7 @@ import { createJobHandler } from '../utils/create-job-handler';
|
|||
* Job scheduling options
|
||||
*/
|
||||
export interface JobScheduleOptions {
|
||||
jobId?: string; // Optional job ID for custom identification
|
||||
delay?: number;
|
||||
priority?: number;
|
||||
attempts?: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue