I am currently working on a topic that requires to use an AIP logic. The issue is that the running time limit is only blocked to 1 minute, whereas I want it to be able to run during at least one hour. What I want to do exactly is to loop on a certain number of items and perform an action for each item. I have approximatively 100 items but I can run only one before it stops…
Do you have experienced this type of issue ? Did you find an alternative or have any suggestions on the AIP logic usage ?
You can modify the time limit of a function (docs) but as of now you can only raise the limit to 5 minutes.
There are a few approaches to work around this depending on your specific use case.
Can you split this up into 1 function call per object? If so you can have automate orchestrate calling this function once per object (assuming each object can run in under 5 minutes)
Can you split this up into multiple different functions? If so, you might be able to chain together multiple AIP agents to enable long running processing (see this post with a longer discussion).
I think that the first proposition you made could be the right way to do it ! However, I am not sure that 1 min per objects is enough, as some can have process that last more than that. So I am trying to modify the runtime limit, going to Ontology manager then Functions. However, I don’t have the Configuration option (that should allow me to modify the runtime limit as explained in the documentation) for AIP logic functions, whereas I can see it for other type of functions (ex: code repository functions). Is it the right way to do it ?
Sorry, I misspoke above, I think logic functions should be default have a ~5 minute timeout so there is nothing to configure in the ontology manager. Where are you seeing the 1 minute timeout?