Skip to content

client

relationalai.services.jobs

Async Jobs service client.

Exposed via client.jobs on the async-first root Client.

This service is a unified abstraction over two backend concepts:

  • Jobs for reasoner_type in Predictive (SQL or Direct Access).
  • Transactions for reasoner_type == Logic (exposed as “jobs” to the user).

Backend capability notes (by design):

  • Logic list/cancel: implemented via SQL against {app}.api.transactions and API.CANCEL_(OWN_)TRANSACTION (even when the configured backend is Direct Access).
  • Logic create: prefers Direct Access when available; falls back to SQL ({app}.api.exec_async_v2).
  • Logic get/events: prefer Direct Access when available, fall back to SQL.

Classes exposed by this module.