Skip to content

get_job_metadata()

relationalai.api
get_job_metadata(reasoner_type STRING, id STRING)

A procedure that retrieves metadata for a specific job on a predictive or prescriptive reasoner. Logic reasoners use the transaction APIs instead. Requires the all_schema_ro application role.

NameTypeDescription
reasoner_typeSTRINGReasoner type. Supported values are 'predictive' and 'prescriptive'.
idSTRINGJob ID.

A table with the following columns:

ColumnTypeDescription
JOB_IDSTRINGJob ID.
STATESTRINGJob state.
ERROR_MESSAGESTRINGError message (if applicable).
RESULT_METADATASTRINGResult metadata payload.

Get metadata for a job:

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