INNER CODE UNIT · Python
duration_seconds
Soju06/codex-lb · app/main.py:432
duration_seconds=max(time.monotonic() - started_at, 0.0),
)
_record_operation_retention_cleanup(result)
logger.warning(
"HTTP bridge operation transcript startup retention failed "
"deleted_operations=0 batches=0 outcome=failed backlog_likely=true "
"duration_seconds=%.3f error_type=%s",
result.duration_seconds,
type(exc).__name__,
)
raise RuntimeError("HTTP bridge operation transcript startup retention failed") from None
backlog_likely = operation_purge_result.selected_operations >= DURABLE_BRIDGE_OPERATION_SPOOL_PURGE_BATCH_SIZE
result = OperationRetentionCleanupResult(
deleted_operations=operation_purge_result.deleted_operations,
batches=1,
backlog_likely=backlog_likely,
outcome="batch_budget_exhausted" if backlog_likely else "completed",