Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

556 B
Raw Blame
import { describeRelayFailure } from './relay-error-redaction.js'

type Warn = (message: string) => void

// Log failed sweep steps; swallowed cleanup failures have stalled production rehoming for hours.
export async function runRelayBackgroundOperation(
  operation: () => Promise<unknown>,
  failureMessage: string,
  warn: Warn = console.warn
): Promise<void> {
  try {
    await operation()
  } catch (error) {
    // Dependency outages must fail readiness without crashing liveness.
    warn(`${failureMessage}: ${describeRelayFailure(error)}`)
  }
}