Rank 2: Process
Does it matter if I put unrelated items at the same level as the funtions directory? Even if there is no operation deploy
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
Does it matter if I put unrelated items at the same level as the funtions directory? Even if there is no operation deploy
Rank 2: Process
Maybe I should clean up the directory and wait for a while to see if the problem happens again
shouldn't be an issue
Was there any more to the error?
Rank 2: Process
There is no more information, only these errors
Can you please share a screenshot?
Rank 2: Process
Rank 2: Process
Rank 2: Process
Thanks for the full message
Rank 2: Process
So the reason why this might be happening is the container gets removed (usually due to inactivity) but the removal fails so it's in this inconsistent state. Make sure to 👍 this related issue https://github.com/appwrite/appwrite/issues/3776
There are some things you can do to mitigate this and they all involve preventing the runtime container from being removed.
One option is to increase the inactivity threshold (there's an environment variable for it) to a value where the runtime container won't be removed.
Another option is to have your function execute regularly (but don't do anything) so that it doesn't get considered as inactive.
You can do both of these too
Rank 2: Process
Thanks for the suggestion, I'll give it a try
Rank 2: Process
btw, i didn't see any wrong on " */25 * * * * "
Rank 2: Process
*/25 * * * *
Rank 2: Process
Something seems to have broken with the cron syntax validation. See https://github.com/appwrite/appwrite/issues/5719
Rank 2: Process
This is Schrödinger's cat, you set up the json file, deploy function, and then do not enter the setting page of this function, other pages can be viewed (such as logs), the timing will not be canceled, but as long as you enter the setting page, the timing will expire
Rank 2: Process
even more Strange
Rank 2: Process
so i set _APP_FUNCTIONS_INACTIVE_THRESHOLD=3610 , This will prevent it from being cleaned up, right?
Depends on how often it executed successfully
Rank 2: Process
But the good news is that the video was shot at 10:19, although all the icons have disappeared
But after 10:20, the methods were all executed! And the icons came back automatically
Rank 2: Process
Rank 2: Process
This is more like a display bug
Rank 2: Process
Currently it is executed almost every few minutes during the day, with no execution for more than an hour in the early morning