blazerjob
Version:
TypeScript library for scheduling, executing, and managing asynchronous tasks (custom, HTTP, Cosmos) with a SQLite backend.
11 lines (10 loc) • 351 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../index");
const jobs = new index_1.BlazeJob({ dbPath: './tasks_shell.db' });
jobs.schedule(async () => { }, {
runAt: new Date(Date.now() + 1000),
type: 'shell',
config: JSON.stringify({ cmd: 'echo Hello BlazeJob!' })
});
jobs.start();