These are the built-in tasks that are available to use in your Jobs.
io
object. These tasks are designed to be generic and reusable, and are a great way to get started with Trigger.dev.
wait
waitForRequest
waitForRequest
to capture a Screenshot of a website using ScreenshotOne.com and passes the callback URL to the webhook URL to get notified when the screenshot is finished:
waitForEvent
id
, name
, payload
, context
, and more.
reference docs
backgroundFetch
fetch
request in the background, and then resume the execution of your job after the request has completed.
backgroundPoll
backgroundFetch
, but instead of waiting for a single request to complete, it will poll a URL until it returns a certain value.
logger
context
object to the logger, which will be displayed in the console:
io.logger.debug()
io.logger.info()
io.logger.warn()
io.logger.error()
store
store.env
to access and store data within the Environmentstore.job
to access and store data within the Jobstore.run
to access and store data within the Runrandom
sendEvent
sendEvents
getEvent
cancelEvent
createStatus