Jobs and results
The examples use the shared client:Inspect and control jobs
list_jobs
list[dict], or None if the
request fails.
get_job_status
None if the request fails.
attach
None. It exits immediately if
the job is missing or already terminal.
cancel_job
None if the request fails.
get_quotas
list[dict], or None if
the request fails.
Wait for completion
SUCCEEDED
when obtain_results=True; otherwise it returns None. output_column names
the result column. is_cost_estimate is accepted for compatibility but does not
change the current polling behavior. Check get_job_status() to distinguish a
failure, cancellation, timeout, or intentionally omitted results.
Materialize manageable results
with_original_df when
provided. User ID columns and confidence_score are preserved. Structured JSON
is unpacked into columns by default; set unpack_json=False to retain the raw
output. Results are cached under ~/.sutro/job-results unless disabled.
Get a download URL
artifact metadata and presigned urls.get
and urls.head, or None if the request fails. The job must be SUCCEEDED.
URLs may live for 1–604800 seconds, are temporary credentials, and must be used
without the Sutro authorization header.
Download large results
None on failure. output_path may be a
directory or complete filename; by default it uses the artifact filename in the
current directory. Interrupted downloads resume from a .part file when
resume=True and the artifact ETag still matches. Otherwise the download
restarts.