Back
function only succeeds if the executions are a couple minutes apart
- 1
- Self Hosted
- Functions
- Databases
I have a simple c# function which creates documents in different collections. However it only successfully finishes if the executions are something like 15 minutes apart. If not the following error occurs:
TypeScript
at System.Collections.Concurrent.ConcurrentDictionary`2.System.Collections.Generic.IDictionary<TKey,TValue>.Add(TKey key, TValue value)
at DotNetRuntime.DatabaseClient.InitializeDatabaseAndStorage() in /usr/local/server/src/DatabaseClient.cs:line 15
at DotNetRuntime.Handler.Main(RuntimeContext Context) in /usr/local/server/src/Index.cs:line 9
at Program.<<Main>$>g__Execute|0_0(HttpRequest request) in /usr/local/server/src/Program.cs:line 16 ```
I can also just manually restart the dockers in order to be able to start the function immediately..
Do I have to manually clear the openruntimes container in which the function get executed or what might be the reason?
TL;DR
The user has a C# function that creates documents in different collections. The function only succeeds if there is at least a 15-minute gap between executions. If executed sooner, they receive an ArgumentException. They wonder if they need to manually clear the container in which the function is executed.I need the function to run every 5ish minutes or so..
What's your code?
Recommended threads
- Go 1.25 runtime
So I'm trying to use go 1.25 for my functions and I can only find go-1.23 as a function runtime. So I did some searching and found https://github.com/appwrite/a...
- Help
- Python TablesDB Rework
Hi, i starting to rework some older functions to TablesDB list_rows Method. I used list_documents with a resultset with worked fine. Now i tried to get all rows...