Skip to main content

Jobs

Jobs are asynchronous operations that sync content from sources into Ground’s index.

Job Lifecycle

Job Stages

Each job progresses through stages:

Job Metrics

Jobs track:
  • files_processed: Number of files/pages processed
  • chunks_created: New chunks added
  • chunks_updated: Existing chunks modified
  • chunks_deleted: Old chunks removed

API Operations

Get Job Status

Response:

List Jobs

Cancel Job

Error Handling

Failed jobs include:
  • error_message: Human-readable error description
  • error_details: Structured error information
Jobs have automatic retry logic:
  • retry_count: Current retry attempt
  • max_retries: Maximum retries (default: 3)

Idempotency

Jobs are designed to be idempotent and resumable:
  • Content hashes prevent duplicate processing
  • Incremental updates only modify changed chunks
  • Worker can restart at any stage checkpoint