Get-KFScriptRunTimeout

Syntax

Get-KFScriptRunTimeout
    -Remaining 
Get-KFScriptRunTimeout
	-TotalScriptTimeout

Support

>= kenaflow 2.0.18

Description

Workflow scripts are executed inside PowerShell. As in every programming language it is possible in PowerShell to create loops. It is not possible for kenaflow to check the "code quality" of a workflow script. If you (accidentally) create an endless loop kenaflow would not be able to stop the script. Therefore it has an security feature that forces scripts to stop if they run too long.

The initial setting for maximum script runtime is set in Global Configuration setting `` or in the workflow configuration missing.

If a workflow knows that it needs more time the execution timeout can be set inside the workflow script during execution with Set-KFScriptRunTimeout

With the cmdlet Get-KFScriptRunTimeout you can get the remaining amount of seconds or the total amout of seconds before the script times out.

Parameter

-Remaining

Get the remaining amount of seconds before the script times out.

-TotalScriptTimeout

Get the total amount of seconds before the script times out.

Examples

***missing***