erquhart
erquhart•2y ago

Canceling recursively scheduled function runs

Looks like the big red button doesn't work for recursive loops that return immediately 😬
9 Replies
Michal Srb
Michal Srb•2y ago
Hey @erquhart, we're working on fixing this! For now you can cancel the functions by deploying to the deployment.
erquhart
erquhartOP•2y ago
got it
Michal Srb
Michal Srb•2y ago
(deploying a codebase that has the scheduled function removed)
erquhart
erquhartOP•2y ago
has to be removed? or maybe renamed
Michal Srb
Michal Srb•2y ago
Sure, or add some logic that will stop the scheduling
erquhart
erquhartOP•2y ago
ah that makes sense
jamwt
jamwt•2y ago
way back when we first introduced the scheduler... pulls up the creaky rocking chair we just started counting the days until the first fork bombs and infinite loops appeared 😄 so yeah, we're working on better ways to understand and have a handle on these patterns when they get away without feeling like you've created a billing issue for yourself or something accidentally too easy to make this mistake right now
erquhart
erquhartOP•2y ago
Yeah, makes sense. Renaming is a solid recourse fwiw, temporarily (a few seconds) renaming + cancelling scheduled runs might be a decent red button approach for now.
james
james•2y ago
@Emma started working on the fix today so stay tuned 🙂

Did you find this page helpful?