Title: bug: Imperative schedules created without declarative tasks are invisible in the UI but block deployment · Issue #3209 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: bug: Imperative schedules created without declarative tasks are invisible in the UI but block deployment · Issue #3209 · triggerdotdev/trigger.dev
X Title: bug: Imperative schedules created without declarative tasks are invisible in the UI but block deployment · Issue #3209 · triggerdotdev/trigger.dev
Description: Provide environment information n/a Describe the bug Schedules created imperatively via schedules.create() don't appear in the Schedules tab when there is no current successful deployment for that environment. They still count against th...
Open Graph Description: Provide environment information n/a Describe the bug Schedules created imperatively via schedules.create() don't appear in the Schedules tab when there is no current successful deployment for that ...
X Description: Provide environment information n/a Describe the bug Schedules created imperatively via schedules.create() don't appear in the Schedules tab when there is no current successful deployment for t...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/3209
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Imperative schedules created without declarative tasks are invisible in the UI but block deployment","articleBody":"### Provide environment information\n\nn/a\n\n### Describe the bug\n\nSchedules created imperatively via schedules.create() don't appear in the Schedules tab when there is no current successful deployment for that environment. They still count against the schedule limit and keep firing runs, but there is no way to view or delete them from the dashboard. This creates a deadlock: the schedules block deployment, and the failed deployment hides the schedules.\n\n### Reproduction repo\n\nn/a\n\n### To reproduce\n\n1. Create 10 scheduled tasks and deploy successfully (declarative schedules are auto-created on deploy)\n2. Remove all 10 tasks from code and redeploym, schedules are cleared\n3. Imperatively create 10 schedules via `schedules.create()` using a unique deduplicationKey each time (simulating CI runs without a stable key):\n ```\n await schedules.create({\n task: \"scheduled-task-1\",\n cron: \"* * * * *\",\n deduplicationKey: `ci-run-${Date.now()}`,\n});\n// repeat for 10 tasks\n```\n\n4. Go to the Schedules tab → shows 0 schedules despite 10 existing in the DB\n5. Try to deploy the 10 scheduled tasks again → fails with You have created 10/10 schedules\n\n### Additional information\n\nWorkaround: Use a stable deduplicationKey in CI so repeated runs upsert instead of creating new schedules. If you're already over the limit, you can clean up with a loop: call schedules.list() and then schedules.del() for each returned schedule (e.g. from a one-off script or task).","author":{"url":"https://github.com/isshaddad","@type":"Person","name":"isshaddad"},"datePublished":"2026-03-12T00:41:03Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/3209"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e58f71ae-353b-92e5-e58e-a45afaf14298 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8626:358701:641A7C4:852671B:6AFAEC65 |
| html-safe-nonce | dfaafe45a8a2227b3a81f4b13a48c80ec74a47b3c36590a721c4ba295812adf4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjI2OjM1ODcwMTo2NDFBN0M0Ojg1MjY3MUI6NkFGQUVDNjUiLCJ2aXNpdG9yX2lkIjoiODUxMjk4NDI1Nzg4NjIzOTczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1e4da27046bd4d8d049296a66e5616dfe83c796a99ded7cbc4e80756c0345f1e |
| hovercard-subject-tag | issue:4061435007 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/3209/issue_layout |
| twitter:image | https://opengraph.githubassets.com/93f485cc87d21a681d6659bf4b29820093fe653d68baa5a73e002d8fc40c19b6/triggerdotdev/trigger.dev/issues/3209 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/93f485cc87d21a681d6659bf4b29820093fe653d68baa5a73e002d8fc40c19b6/triggerdotdev/trigger.dev/issues/3209 |
| og:image:alt | Provide environment information n/a Describe the bug Schedules created imperatively via schedules.create() don't appear in the Schedules tab when there is no current successful deployment for that ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | isshaddad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 12fff95459b24b0f882a66698ee6a36a5934d247 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width