get_job_metadata()
relationalai.api
get_job_metadata(reasoner_type STRING, id STRING)A procedure that retrieves metadata for a specific job.
Requires the all_schema_ro application role.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
reasoner_type | STRING | Reasoner type (for example, 'predictive'). |
id | STRING | Job ID. |
Returns
Section titled “Returns”A table with the following columns:
| Column | Type | Description |
|---|---|---|
JOB_ID | STRING | Job ID. |
STATE | STRING | Job state. |
ERROR_MESSAGE | STRING | Error message (if applicable). |
RESULT_METADATA | STRING | Result metadata payload. |
Example
Section titled “Example”Get metadata for a job:
CALL relationalai.api.get_job_metadata('predictive', 'abc123');