console icon indicating copy to clipboard operation
console copied to clipboard

🐛 Bug Report: Unable to update function timeout beyond 900

Open christyjacob4 opened this issue 1 year ago • 2 comments

👟 Reproduction steps

Head to the functions settings screen and try to update the function timeout beyond 900 seconds.

👍 Expected behavior

The function timeout is updated

👎 Actual Behavior

Timeout cannot be updated beyond 900 due to the limit being hardcoded in the console https://github.com/appwrite/console/blob/main/src/routes/console/project-%5Bproject%5D/functions/function-%5Bfunction%5D/settings/%2Bpage.svelte#L476

🎲 Appwrite version

Version 1.2.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

christyjacob4 avatar Apr 10 '23 20:04 christyjacob4

The max execution time of a function can be 900 seconds (15 minutes), I don't think appwrite wants users to go beyond that limit

for reference see this line https://github.com/appwrite/console/blob/af8453d75f64a2cf4a62a742904abeab6dd70cef/src/routes/console/project-%5Bproject%5D/functions/function-%5Bfunction%5D/settings/updateTimeout.svelte#L59C72-L59C75

ankushKun avatar Oct 03 '23 08:10 ankushKun

@christyjacob4 we need to expose Appwrite's env variable so we can use it in the console. We should be able to add to all the others we get by listing variables

ArmanNik avatar Mar 11 '24 16:03 ArmanNik