Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 2.72 KB

File metadata and controls

21 lines (19 loc) · 2.72 KB
title SDK: Introduction
sidebarTitle Introduction
description The SDK is how you interact with Trigger.dev

The SDK requires Node.js v18 or above

Name Description
TriggerClient TriggerClient is used to create a client that connects to the Trigger.dev platform
Job Create, configure and run a Job
IO The second parameter in a Job's run() function. It holds Integrations and useful actions you can perform.
context The third parameter in a Job's run() function. An object that contains information about the Organization, Job, Run and more.
eventTrigger() eventTrigger() is set as a Job's trigger to subscribe to an event a Job from a sent event.
cronTrigger() cronTrigger() is set as a Job's trigger to trigger a Job on a recurring schedule using a CRON expression.
intervalTrigger() intervalTrigger() is set as a Job's trigger to trigger a Job at a recurring interval.
DynamicTrigger DynamicTrigger allows you to define a trigger that can be configured dynamically at runtime.
DynamicSchedule DynamicSchedule allows you to define a scheduled trigger that can be configured dynamically at runtime.
isTriggerError Use this function if you're using a try/catch block to catch errors.
redactString An easy way to redact sensitive information from a string