Skip to main content

Get Job Status

Check the status and progress of an ingestion job.

Endpoint​

GET /jobs/job/:jobId

Parameters​

ParameterTypeLocationDescription
jobIdstringpathThe job ID returned from ingestion

Example Request​

curl http://localhost:3000/jobs/job/01HQZX3Y4Z5A6B7C8D9E0F1G2H

Response​

{
"id": "01HQZX3Y4Z5A6B7C8D9E0F1G2H",
"state": "completed",
"progress": 100,
"data": {
"repoUrl": "https://github.com/username/repo.git",
"ref": "main"
}
}

Response Fields​

FieldTypeDescription
idstringJob identifier
statestringCurrent job state
progressnumberProgress percentage (0-100)
dataobjectOriginal job data

Job States​

StateDescription
queuedJob is waiting in the queue
activeJob is currently being processed
completedJob finished successfully
failedJob failed (check failed jobs endpoint)

Polling for Completion​

# Poll every 5 seconds until completed
while true; do
status=$(curl -s http://localhost:3000/jobs/job/01HQZX... | jq -r '.state')
echo "Status: $status"
if [ "$status" = "completed" ] || [ "$status" = "failed" ]; then
break
fi
sleep 5
done

Status Codes​

CodeDescription
200Job found
404Job not found