State
Associated with: Python Program items
This status attribute indicates the status of the Python program.
Possible states:
-
Idle—The server is not actively processing any 'Run' requests for this program and there are no outstanding 'Run' requests being queued for the program.
-
Pending—A 'Run' of the program has been requested but is currently queued and awaiting execution. This state typically indicates that the Geo SCADA Expert server is currently running other Python programs and has reached its configured Maximum Number of Running Programs (see Define the Program Limits on the Server). The 'Run' request has been placed in the program's Execution Queue. The server will execute that and any other 'Run' requests in chronological order once it has capacity to do so.
-
Running—A 'Run' of the program is currently in progress.
-
Failed—The last 'Run' request of the program was unable to run to completion successfully. View the driver log file, or Python Programs List to see the error message that should help to identify the reason for this. The program's Exit Code will have a non-zero value - the writer of the program will be able to provide information about the meaning of the Exit Code number. This might help to identify where you might need to look in the code of the Python program if the issue is due to a problem with that code.
-
Terminated—The last 'Run' of the program was stopped before the program had run to completion. This was due to the Stop pick action or Stop method being used to forcibly end the program run. This will result in an Exit Code of 1.
-
Timed Out—The last 'Run' of the program was ended before the program had run to completion. This was due to the program's run time exceeding the configured Runtime Limit for that Python Program item (see Specify the Runtime Limit of a Python Program).