trigger.dev
trigger.dev copied to clipboard
[TRI-2314] Changing a Job the version and disabling at the same time doesn't disable the Job (v2)
Steps to reproduce
- Take an existing Job that is visible and enabled in the dashboard
- Change the version and set
enabled: falsein your code - Run the CLI dev command
npx @trigger.dev/cli@latest devand/or push to prod and follow the deployments guide so indexing happens - It won't get disabled in the dashboard
Workaround
- Increase the version number and set
enabled: true - Index the Job by running the dev CLI and/or deploying
- Then set
enabled: false - Index the Job by running the dev CLI and/or deploying.
Fix
It should get disabled. I think this is happening because when a Job is disabled the versions are ignored.