{"record":{"id":"cf480181844f9a8c","repo":"ruvnet/ruflo","slug":"circuit-breaker-is-open-service-temporarily-unava","errorCode":null,"errorMessage":"Circuit breaker is open. Service temporarily unavailable.","messagePattern":"Circuit breaker is open\\. Service temporarily unavailable\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/cli/src/production/circuit-breaker.ts","lineNumber":116,"sourceCode":"\n      case 'open':\n        return false;\n\n      case 'half-open':\n        // Allow a percentage of requests through\n        return Math.random() < this.config.halfOpenRequestPercentage;\n\n      default:\n        return true;\n    }\n  }\n\n  /**\n   * Execute a function through the circuit breaker\n   */\n  async execute<T>(fn: () => Promise<T>): Promise<T> {\n    if (!this.isAllowed()) {\n      throw new Error('Circuit breaker is open. Service temporarily unavailable.');\n    }\n\n    this.totalRequests++;\n\n    try {\n      const result = await fn();\n      this.recordSuccess();\n      return result;\n    } catch (error) {\n      this.recordFailure();\n      throw error;\n    }\n  }\n\n  /**\n   * Record a successful operation\n   */\n  recordSuccess(): void {","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/ruvnet/ruflo/blob/6b01dc5a687b26b3e218f796de45ec51f8fa9e8c/v3/@claude-flow/cli/src/production/circuit-breaker.ts#L98-L134","documentation":"Error \"Circuit breaker is open. Service temporarily unavailable.\" thrown in ruvnet/ruflo.","triggerScenarios":"Thrown at v3/@claude-flow/cli/src/production/circuit-breaker.ts:116 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6b01dc5a687b26b3e218f796de45ec51f8fa9e8c","analyzedAt":"2026-08-12T13:20:50.148Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}