The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
how to continue a loop after a timeout
suleymansahal
Member Posts: 27 Contributor II
There is an option in loop operator which allows to limit the duration of a loop step. But when the the duration of the process exceeds the time limit it aborts the entire loop. Is there a solution, workaround to just skip that loop step and continue from the next step of the loop?
Edit: I just thought something. Will putting a loop which has one iteration with a time limit inside the real loop work?
Tagged:
0
Answers
It did not work. The loop operator always finished the first step regardless of the timeout preference. When timeout happened the loop operator was aborted after finishing the first step. What is the rationale for this?
Hi,
the purpose of the limit time option is to stop the entire loop, when its runtime exceeds the specified interval. It is not intended to stop an interation in the middle. It simply does not start the next iteration, if the runtime already exceeded the specified interval. Use cases that I can think of right now: a) detecting and reporting an error, when the Loop should finish in the specified time b) setting a time constraint, when there is an optimization going on inside the loop, etc.
I am afraid I am not aware of an operator that could accomplish what you expect: stopping an arbitrary subprocess precisely after a specified timeout has been reached.
Best,
Peter
Thank you for your prompt answer.
I was comparing different models inside the loop. I was logging both performance values and execution times. Performance is not the sole consideration. Since some models like ANN take considerably higher times, I intended to skip those models which last longer than my computer can handle. Right now, I observe the log values and if I realize one of the loop steps runs too long I manually take that model out from the loop and rerun the whole process. I cannot think of any solution either.
Thank you for your efforts.
An interesting one... I imagine this might be possible with RapidMiner Server.
My basic flow would probably be like this. (Please note, this is only draft to give you an idea... it's not meant to be functional.)
Hi,
don't worry about the Loop timeout parameter. It will be not show up anymore with the next release as it was just a crutch for some very obscure use cases.
Regards,
Marco