This topic was automatically generated from Slack. You can find the original thread here.
Hi all,
Does the Files API have ability to do concurrent updates .i.e if file is updated in two workflows at the exact same time will both updates be successful? I have a workflow that does a lot file updates and some updates are missing.
In that example. if multiple workflows are all opening and writing to myfile.txt then that file would be overridden because it’s the same file path within the File Store.
Or if you’re retrieving the file then adding data to it within the step, then it’s still subject to a race condition with other workflows modifying that same file
Ya I think this is what could be going on. I am basically reading the content of the file , adding the new content and then writing this content to the File store.
It’s being used as a data processing file that is then sent to another app. The thing is that there is a lot of transaction in a short space of time.
Yes, potentially that’s another way. If you limit all writing to this file to one workflow and control that workflow’s concurrency that could eliminate the race condition