blazerjob
Version:
TypeScript library for scheduling, executing, and managing asynchronous tasks (custom, HTTP, Cosmos) with a SQLite backend.
16 lines (15 loc) • 450 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../index");
const jobs = new index_1.BlazeJob({ dbPath: './tasks_cosmos_tx.db' });
jobs.schedule(async () => { }, {
runAt: new Date(Date.now() + 1000),
type: 'cosmos',
config: JSON.stringify({
to: 'cosmos1destination...',
amount: '100000',
denom: 'uatom',
chainId: 'cosmoshub-4'
})
});
jobs.start();