steer-protocol-watcher-ts/src/cli/reset-cmds/job-queue.ts
Nabarun Gogoi 5b954a9dcd
Generate watcher using codegen (#1)
* Generate watcher

* Update config toml for filecoin subgraph watcher

* Update readme with subgraph link
2024-10-14 12:34:23 +05:30

23 lines
476 B
TypeScript

//
// Copyright 2021 Vulcanize, Inc.
//
import debug from 'debug';
import { getConfig, resetJobs, Config } from '@cerc-io/util';
const log = debug('vulcanize:reset-job-queue');
export const command = 'job-queue';
export const desc = 'Reset job queue';
export const builder = {};
export const handler = async (argv: any): Promise<void> => {
const config: Config = await getConfig(argv.configFile);
await resetJobs(config);
log('Job queue reset successfully');
};