Rank 2: Process
Timeout was 30 before.
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
Timeout was 30 before.
Rank 2: Process
Cron schedule is every weekday at 4:30 UTC
Ok so increasing it will help
I would try to make it run faster, though. The longer it runs without completing successfully, the more likely it is to be killed and removed due to inactivity
Rank 2: Process
If there are 20k documents, I’m querying it for the top 13 records based on time and correct answer.
Rank 2: Process
We might get over 100k submissions too
Rank 2: Process
What’s the best way.
Rank 2: Process
I’m getting that error after increasing alsoo
Use queries to filter and sort.
https://appwrite.io/docs/products/databases/queries#query-class
https://appwrite.io/docs/products/databases/order
You should also look into breaking your function to perform smaller, more frequent executions
Rank 2: Process
Yess. I have used it.
Rank 2: Process
Whats the ideal timeout for my case ?
You set it to how long it typically runs for ..
But the long running execution is a separate problem you should address
Rank 2: Process
Okayy. But why do I this error ?
Rank 2: Process
Yeahh but the max timeout is 900secs right ?
Rank 2: Process
Mine’s not even going over 30secs
No, this is irrespective of your timeout
Rank 2: Process
Its bot taking so much time know then. Why is it getting killed
Rank 2: Process
Thanks. Got it.
Rank 2: Process
Is there any workaround for resolving this ?
Make your function finish faster...
Rank 2: Process
Is that the only option ? Coz my function depends upon other apis.
I would focus on what I suggested
Rank 2: Process
Actually, we dont have that option since we are dependent on external APIs.