npm.io
0.10.4 • Published 2d ago

@porulle/jobs-trigger

Licence
MIT
Version
0.10.4
Deps
2
Size
12 kB
Vulns
0
Weekly
0

@porulle/jobs-trigger

Push execution engine that translates Porulle tasks into Trigger.dev tasks and enqueues them with the Trigger.dev SDK.

import { TriggerExecutionEngine } from "@porulle/jobs-trigger";

export const jobs = new TriggerExecutionEngine();
export default defineConfig({ jobs: { adapter: jobs } });

Import the module that creates the Porulle kernel from the Trigger.dev task directory. Registration calls Trigger.dev's task() API for every configured task; the Trigger.dev runtime then owns execution and retries.