Everytime a Job is triggered, a Run is created with a payload of data.
run()
function of a Job.
run()
function is called with some useful parameters. More on that in a second.{ url: "https://..." }
.io
object gives you access to Integrations and other useful functions. View the full reference for io
.
A few things you can do with io
:
io.runTask
.context
object gives you access to information about the current Run, Job, Environment, Organization and Event. View the full reference for context
.
io.wait()
or because a task failed and will be retried at some point in the future. Runs in this state don’t count towards concurrency limits.