2 Data sources jobs
Forgejo Actions edited this page 2026-11-18 21:50:59 +00:00

xyops_jobs (Data Source)

Searches completed jobs with search_jobs, filtered by category and target access rights of the API key. Useful queries include tags:_error for failed jobs, code:critical and event:<event id>.

Schema

Optional

  • limit (Number) Maximum number of rows to return. Defaults to 100.
  • offset (Number) Zero-based row offset for pagination. Defaults to 0.
  • query (String) Search query in the xyOps index syntax, e.g. tags:_error, code:critical, event:<event id>, date:>=today. Defaults to all records.

Read-Only

  • jobs (List of Object) Matching job records, pruned of runtime output, in the order xyOps returned. (see below for nested schema)
  • total (Number) Total number of matching records, without pagination.

Nested Schema for jobs

Read-Only:

  • category (String)
  • code (Number)
  • completed (Number)
  • description (String)
  • elapsed (Number)
  • event (String)
  • event_title (String)
  • groups (List of String)
  • id (String)
  • plugin (String)
  • server (String)
  • started (Number)
  • state (String)
  • tags (List of String)