executorgetexpiryhours
executorgetexpiryhours |
Purpose
Fetch the configured execution expiry time of the Xpress Executor component.
Synopsis
function executorgetexpiryhours(exec:Executor):integer
Argument
|
exec
|
The Executor to query
|
Return value
The number of hours after which a completed execution may be automatically deleted.
Example
declarations
expiryhours: integer
end-declarations
expiryhours := executorgetexpiryhours( myexecutor )
if myexecutor.status<>EXECUTOR_OK then
writeln("Error returned by Executor: ",myexecutor.lasterror)
exit(1)
end-if
Further information
1. After calling, check the value of
exec.status for any errors.
2. This will always be MAX_INT if the Executor is configured in local mode.
Related topics
