This is a short preview of a Knowledge Base article. The full article is available to logged-in Continuous Community members.
Summary
Shows how to use the OpCon API and PowerShell to keep a job's Max Runtime accurate. OpCon does not update Max Runtime on its own, so the article walks through retrieving a job's recent history, calculating the average runtime with a safety buffer, and writing the new value back to the job's frequencies, so runtime alerts reflect real performance.
Applies to
OpCon API · PowerShell · job history · Max Runtime
Topics covered
- Why Max Runtime needs to be maintained
- Retrieving job history for a date range
- Calculating an average runtime plus a buffer
- Retrieving and updating the job definition through the API
Keywords
Max Runtime, job runtime, job history, OpCon API, PowerShell, average runtime, runtime alerts, jobhistory, update job, monitoring thresholds, Invoke-RestMethod
