Check status of a run
scripts_get_sql_runs(id, run_id)
A list containing the following elements:
integer, The ID of the run.
integer, The ID of the sql.
string, The state of the run, one of 'queued' 'running' 'succeeded' 'failed' or 'cancelled'.
boolean, True if run cancel requested, else false.
string, The time the run was created.
string, The time the run started at.
string, The time the run completed.
string, The error, if any, returned by the run.
array, An array containing the following fields:
outputName string, The name of the output file.
fileId integer, The unique ID of the output file.
path string, The temporary link to download this output file, valid for 36 hours.
string, The time that the output was originally exported, if a cache entry was used by the run.
integer required. The ID of the sql.
integer required. The ID of the run.