Changelog #4
·
Disable and delete jobs
CTO, Trigger.dev
You can now disable jobs in your code by setting the enabled
option to false
:
_10client.defineJob({_10 id: "example-job",_10 name: "Example Job",_10 version: "0.1.0",_10 trigger: eventTrigger({ name: "example.event" }),_10 enabled: false,_10 run: async (payload, io, ctx) => {_10 // your job code here_10 },_10});
Which will show the job as disabled in the dashboard:
Once you've disabled your job, you can delete it from the dashboard:
For more detailed information, checkout our documentation on managing Jobs.