Continuum.Runtime.JournalError exception (continuum v0.6.0)

Copy Markdown View Source

Raised by the Postgres journal adapter when a transactional write is rejected or fails.

reason carries the structured rollback reason (for example {:lease_mismatch, ...} or {:run_not_active, "completed"}), so the engine and activity workers classify failures by pattern matching instead of message substrings. op names the journal operation that failed.

Summary

Functions

Whether this error means the caller's run-lease authority is gone (fencing token rotated, or the CAS write matched no row).

Functions

lease_lost?(journal_error)

Whether this error means the caller's run-lease authority is gone (fencing token rotated, or the CAS write matched no row).