Skip to content

get_job()

relationalai.api
get_job(reasoner_type STRING, id STRING)

A procedure that retrieves details for a specific job. Requires the all_schema_ro application role.

NameTypeDescription
reasoner_typeSTRINGReasoner type (for example, 'predictive').
idSTRINGJob ID.

A table with the following columns:

ColumnTypeDescription
IDSTRINGJob ID.
REASONER_TYPESTRINGReasoner type.
REASONER_NAMESTRINGReasoner name.
STATESTRINGJob state.
CREATED_BYSTRINGUser who created the job.
CREATED_ONTIMESTAMP_LTZJob creation timestamp.
FINISHED_ATTIMESTAMP_LTZJob completion timestamp.
DURATIONINTJob duration in milliseconds.
PAYLOADSTRINGJob payload.
TIMEOUT_MSINTTimeout in milliseconds.
ABORT_REASONSTRINGReason the job was aborted (if applicable).

Get the details for a job:

CALL relationalai.api.get_job('predictive', 'abc123');