mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
18 lines
394 B
TypeScript
18 lines
394 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import type {IWorkerService} from '@pkgs/worker/src/contracts/IWorkerService';
|
|
|
|
export class NoopWorkerService implements IWorkerService {
|
|
async addJob(): Promise<bigint> {
|
|
return 0n;
|
|
}
|
|
|
|
async cancelJob(_jobId: bigint): Promise<boolean> {
|
|
return false;
|
|
}
|
|
|
|
async retryDeadLetterJob(_jobId: bigint): Promise<boolean> {
|
|
return false;
|
|
}
|
|
}
|