Hello again, idk why this happened, and dont know how to replicate it.
The function is set to run every two minutes (I have another function with same schedule)
Seems like after that fail, the function stops running completely
Hmm. Seems like your function isn't cleanly being cleared...there's an inactivity interval in which functions are removed if they aren't executed successfully. Maybe you can try to increase that to 2-3 minutes
I will do it Steven
Thank you
Btw, is it normal after that fail, the function stops its CRON execution completely?
if it's so, any workaround to "restart" the function?
This failure is a bit more catastrophic. This is the related issue: https://github.com/appwrite/appwrite/issues/3776
Oh I see, so do you have any idea on how to detect this failure and then proceed to deploy again or restart?
Ill probably make an shell script for that, just to prevent hanging
Instead of a shell script, did you try to increase the inactivity interval like I suggested?
Yes sir. I'm just talking in the case it happens again.
But yeah I increase the interval of the two functions. And no problem so far
Sorry if I'm being annoying π
The interval I'm referring to is an environment variable that applies to all functions π§
No worries. Just making sure you didn't miss that.
Anyways, the only way to detect would be to watch the docker logs for the executor container
Oh, I thought the CRON parameter
So what is the env variable?
Search for inactive: https://appwrite.io/docs/environment-variables#functions
Reading that, seems like default value is 60, should I set it on 180?
Recommended threads
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- Functions in cloud console not works
please advise as all of my runing functions on Appwrite console was working before , but now it give this error [Invalid `headers` param: Value must be a valid...
- [SOLVED] Production down - createExecuti...
Hey, Since 1.9.6 rollout in fra (~17:00 UTC, 14 Aug), POST /v1/functions/{functionId}/executions returns a 400 whenever the body includes an empty headers ob...