work on spider for te

This commit is contained in:
Boki 2025-07-06 15:26:47 -04:00
parent 505565a09e
commit 95b1381480
17 changed files with 485 additions and 28 deletions

View file

@ -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;