UNPKG

blazerjob

Version:

TypeScript library for scheduling, executing, and managing asynchronous tasks (custom, HTTP, Cosmos) with a SQLite backend.

15 lines (14 loc) 457 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../index"); const jobs = new index_1.BlazeJob({ dbPath: './tasks_fintech.db' }); jobs.schedule(async () => { }, { runAt: new Date(Date.now() + 1000), type: 'fintech', config: JSON.stringify({ provider: 'demo', action: 'create_invoice', data: { customerId: '123', amount: 100, currency: 'EUR' } }) }); jobs.start();