trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

[TRI-2314] Changing a Job the version and disabling at the same time doesn't disable the Job (v2)

Open matt-aitken opened this issue 1 year ago • 0 comments

Steps to reproduce

  1. Take an existing Job that is visible and enabled in the dashboard
  2. Change the version and set enabled: false in your code
  3. Run the CLI dev command npx @trigger.dev/cli@latest dev and/or push to prod and follow the deployments guide so indexing happens
  4. It won't get disabled in the dashboard

Workaround

  1. Increase the version number and set enabled: true
  2. Index the Job by running the dev CLI and/or deploying
  3. Then set enabled: false
  4. 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.

TRI-2314

matt-aitken avatar Apr 18 '24 10:04 matt-aitken