If it is hours long function then I'd go for async call and for monitoring the function you may use "Wait for an async call" action in "Recipe function by workato" which periodically checks your function to complete before proceeding.Documentation he...
There are two types of calls to recipe function, if you call it synchronously then it means that the function has completed executing all steps. So any awaiting actions can follow in your parent recipe (or any other function)
Hi Jelle,Did you try the trigger "New file in folder", it does not say only CSV files so presume it should take all types of files but I did not use it myself so cannot confirm. Just a hint.