mirror of
https://github.com/documenso/documenso.git
synced 2026-07-10 21:15:15 +10:00
30 lines
967 B
TypeScript
30 lines
967 B
TypeScript
import type { Context as HonoContext } from 'hono';
|
|
|
|
import type { JobDefinition, SimpleTriggerJobOptions } from './_internal/job';
|
|
|
|
export abstract class BaseJobProvider {
|
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
public async triggerJob(_options: SimpleTriggerJobOptions): Promise<void> {
|
|
throw new Error('Not implemented');
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
public defineJob<N extends string, T>(_job: JobDefinition<N, T>): void {
|
|
throw new Error('Not implemented');
|
|
}
|
|
|
|
public getApiHandler(): (req: HonoContext) => Promise<Response | void> {
|
|
throw new Error('Not implemented');
|
|
}
|
|
|
|
/**
|
|
* Start the cron scheduler for any registered cron jobs.
|
|
*
|
|
* No-op for providers that handle cron scheduling externally (e.g. Inngest).
|
|
* Must be called explicitly at application startup.
|
|
*/
|
|
public startCron(): void {
|
|
// No-op by default — providers override if needed.
|
|
}
|
|
}
|