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
RM Server - Execution Time Limit
archana_sr
Member Posts: 3 Contributor I
Hi Guys,
For the process that are scheduled on the RM server, I am aware we can set the maximum time upto which it can run. Say I have set my process execution time to 30 minutes. Now once it exceeds the 30 minutes, it kills itself with below message.
This is working as expected, but my question is, is there any way I can capture this message? What I am planning to do is, the process can get killed because of many reasons and I want to know how many times it stopped because it exceeded the time limit and other errors. I am expecting something like:
Between Aug 1 - Aug 15: My process got killed 15 times
For the process that are scheduled on the RM server, I am aware we can set the maximum time upto which it can run. Say I have set my process execution time to 30 minutes. Now once it exceeds the 30 minutes, it kills itself with below message.
This is working as expected, but my question is, is there any way I can capture this message? What I am planning to do is, the process can get killed because of many reasons and I want to know how many times it stopped because it exceeded the time limit and other errors. I am expecting something like:
Between Aug 1 - Aug 15: My process got killed 15 times
- Time to live exceeded - 10
- Others - 5
Tagged:
0
Answers
- Use our REST API to query failed jobs, e.g. via /executions/jobs?page=0&size=10000&state=ERROR, here you can also limit dates, e.g. by adding &submissionsFrom=1596232800000&submissionsTo=1598565600000
- Parse the requested JSON payload, look for the individual response for a job and the error field (see Swagger documentation here: https://app.swaggerhub.com/apis-docs/RapidMiner/Server/9.7.1#/JobResponse)
- Accumulate your results afterwards
For example you could create a python script to accumulate the results, do the REST requests and save to a data set. It's also possible to execute this python script within RapidMiner Execute Python afterwards if you create a RapidMiner process from it.