Is it possible to increase AIP logic running time limit or find a way to "by pass" it?

Hello everyone,

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 ?

Thank you !

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.

  1. 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)

  2. 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).

Thank you for your answer !

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 ?

Thank you.

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?

I cannot print screenshots in the prompt, so here is a copy of the error:

Failed

Actions:FunctionExecutionTimedOut

Trace ID

e066254a64ffc463

Error ID

a466af98-49c8-450a-a990-a19736afd325

Failed to apply changes as they took too long to apply

The Function that backs the Action Type timed out

Allowed duration: 1m

Actual duration: 1m

Function RID: ri.function-registry.main.function.02e06816-a568-4f20-9c37-23969231f023

Function version: RuleAndExecutedFunctionVersions{ruleFunctionVersion: 0.0.9, executedFunctionVersion: Optional[0.0.9]}

Error Name: Actions:FunctionExecutionTimedOut

Error ID: a466af98-49c8-450a-a990-a19736afd325