You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Installed reporting tools mark STATUS_PROJECTION_UNAVAILABLE, LOOKUP_UNAVAILABLE and HISTORY_UNAVAILABLE as terminal #1618
installed_reporting_call turns these LedgerConflictError codes into terminal AdcpErrors:
STATUS_PROJECTION_UNAVAILABLE ("status lifecycle is pending");
LOOKUP_UNAVAILABLE (a buyer reference that doesn't resolve);
HISTORY_UNAVAILABLE.
"Pending" is a state that resolves on its own, so a buyer told terminal stops retrying a call that would succeed later. An unresolvable reference is the buyer's to correct, either correctable or REFERENCE_NOT_FOUND.
Reproduction (adcp 9.1.0)
importasynciofromadcp.reporting._errorsimportinstalled_reporting_callfromadcp.reporting.ledgerimportLedgerConflictErrorasyncdefmain():
forcode, messagein [
("STATUS_PROJECTION_UNAVAILABLE", "status lifecycle is pending"),
("LOOKUP_UNAVAILABLE", "buyer reference does not resolve"),
("HISTORY_UNAVAILABLE", "history is unavailable"),
]:
asyncdefcall():
raiseLedgerConflictError(code, message)
try:
awaitinstalled_reporting_call("sync_reporting_status", call, decisioning=True)
exceptExceptionaserror: # noqa: BLE001print(code, "->", type(error).__name__, getattr(error, "code", None), getattr(error, "recovery", None))
asyncio.run(main())
LOOKUP_UNAVAILABLE: correctable, or REFERENCE_NOT_FOUND / correctable.
HISTORY_UNAVAILABLE: whichever the history store's failure modes warrant; transient if it means not yet materialized.
Impact
The Embedded Sales Agent keeps its own _serve translation in front of the installed reporting tools because of this. It can delete that once the SDK's classification matches (#1292 / #1316 otherwise covers it).
Activity
fix(reporting): classify pending status and owed history as transient…