client.media.get_optimizations_runs
A method of the Media endpoint.
- get_optimizations_runs(id: int, run_id: int) Response
Check status of a run
API URL:
GET /media/optimizations/{id}/runs/{run_id}import civis client = civis.APIClient() response = client.media.get_optimizations_runs(...)
- Parameters:
- idint
The ID of the Optimization job.
- run_idint
The ID of the run.
- Returns:
civis.Response- idint
The ID of the run.
- optimization_idint
The ID of the Optimization job.
- statestr
The state of the run, one of ‘queued’ ‘running’ ‘succeeded’ ‘failed’ or ‘cancelled’.
- is_cancel_requestedbool
True if run cancel requested, else false.
- created_atstr (time)
The time the run was created.
- started_atstr (time)
The time the run started at.
- finished_atstr (time)
The time the run completed.
- errorstr
The error, if any, returned by the run.