{"record":{"id":"9810ef5168fc1ad0","repo":"ruvnet/ruflo","slug":"maximum-concurrent-workflows-reached","errorCode":null,"errorMessage":"Maximum concurrent workflows reached","messagePattern":"Maximum concurrent workflows reached","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/shared/src/plugins/official/maestro-plugin.ts","lineNumber":186,"sourceCode":"      createdAt: new Date(),\n      checkpoints: new Map(),\n    };\n\n    this.workflows.set(workflow.id, workflow);\n    return workflow;\n  }\n\n  /**\n   * Execute a workflow\n   */\n  async executeWorkflow(workflowId: string): Promise<OrchestrationResult> {\n    const workflow = this.workflows.get(workflowId);\n    if (!workflow) {\n      throw new Error(`Workflow not found: ${workflowId}`);\n    }\n\n    if (this.activeWorkflows >= this.config.maxConcurrentWorkflows) {\n      throw new Error('Maximum concurrent workflows reached');\n    }\n\n    const startTime = Date.now();\n    workflow.status = 'running';\n    workflow.startedAt = new Date();\n    this.activeWorkflows++;\n\n    const errors: Array<{ stepId: string; error: string }> = [];\n    const outputs: Record<string, unknown> = {};\n\n    try {\n      switch (this.config.orchestrationMode) {\n        case 'sequential':\n          await this.executeSequential(workflow, outputs, errors);\n          break;\n        case 'parallel':\n          await this.executeParallel(workflow, outputs, errors);\n          break;","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/shared/src/plugins/official/maestro-plugin.ts#L168-L204","documentation":"MaestroPlugin.executeWorkflow found the workflow but activeWorkflows is already at config.maxConcurrentWorkflows. A concurrency cap on orchestration: the workflow is valid, it simply cannot start until a running workflow finishes.","triggerScenarios":"Thrown at v3/@claude-flow/shared/src/plugins/official/maestro-plugin.ts:186 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Raise the max concurrent workflow limit in configuration if needed.","Wait for running workflows to complete before starting new ones."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}