ExAgent.Jobs.Durable.FollowUps (ExAgent v3.0.0)

View Source

Durable jobs that open a turn in the conversation that scheduled them.

Stability — Candidate.

The conversation Store owns the pending row. Its retry_at is the earliest delivery time. ExAgent.Continuation.Recovery drives delivery, and the durable turn start consumes the pending job atomically.

Summary

Functions

Cancel all pending jobs for an authorized conversation, even with no owner running. Return the number removed. Use ExAgent.Server.abort/2 with cancel_follow_ups: true to also cancel current work.

List pending jobs in due order for an authorized conversation.

Functions

cancel_all(store, id)

@spec cancel_all(ExAgent.Store.scoped(), String.t()) ::
  {:ok, non_neg_integer()} | {:error, term()}

Cancel all pending jobs for an authorized conversation, even with no owner running. Return the number removed. Use ExAgent.Server.abort/2 with cancel_follow_ups: true to also cancel current work.

list(store, id)

@spec list(ExAgent.Store.scoped(), String.t()) ::
  {:ok, [ExAgent.Jobs.Job.t()]} | {:error, term()}

List pending jobs in due order for an authorized conversation.