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

Declarative schedules show per-env in the dashboard and each env counts towards your limit

Open samejr opened this issue 8 months ago • 3 comments

If you define the cron patterns directly in your code (cron: "* * * * *") (a declarative schedule) we treat them as separate schedules so they can be disabled/deleted separately in different environments.

It's confusing though that they all show up in the schedules table in the dashboard per-environment and each environment counts as +1 towards your schedules limit.

We should change this so a declarative schedule is unique to the task ID, so it is only counted as +1 of your schedules limit across all environments.

samejr avatar Mar 06 '25 12:03 samejr

Can you provide a bit more info on this issue so i can work on it or take a look into it

CodeMan62 avatar Mar 08 '25 17:03 CodeMan62

This issue is still being debated as there's a few ways we could do it so it's hard to define at the moment. I think we'll end up folding this work into another bigger change we're making.

samejr avatar Mar 11 '25 10:03 samejr

@samejr Thanks for the update! I understand this is being considered as part of a larger change. Please let me know if there's anything I can help with once the direction is more clearly defined.

CodeMan62 avatar Mar 11 '25 16:03 CodeMan62

@CodeMan62 we changed the way we count these now so it's more generous.

matt-aitken avatar Aug 08 '25 13:08 matt-aitken