You can determine the status of your job by sending a query to the server.
If you are using the Java API, use the method:
If you are using curl and the REST API, use this command:
curl –i -H "X-IBM-Client-Id: <key>" -X GET <URL>/jobs/<ID>/execute
If you are using the Python API, use the method:
Job status values
The API returns an execution status enum, which can take the following values:
|CREATED||The job has been created. The job remains in this state until you submit it for execution.|
|NOT_STARTED||This temporary status can occur when a job is transitioning from CREATED to RUNNING. This state might occur if the job has to wait for an engine to process it.
This appears as Pending in the DropSolve interface.
|RUNNING||The job is currently being executed.|
|PROCESSED||The job has finished executing and was processed successfully at the system level.
This appears as Completed in DropSolve.
|FAILED||The job had a failure and cannot be successfully processed. Failure details are available in the job log. The cause might be unsupported file attachments, job modeling issues, or a system failure.|
|INTERRUPTING||A job interruption has been requested and is being processed.|
|INTERRUPTED||The job has been interrupted and processing has stopped. Further details about the interruption are stored in the job log.
This appears as Aborted in DropSolve.
Note that in your usage history you can see details of all executed jobs for the last four months and you can get more details on job status by downloading the list in a CSV file. To access the Usage History page you must be signed into the DOcplexcloud website and use your account menu (upper right corner).