fix: Run evaluations successfully when offload manual executions is true with queue mode (#16307)

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Mutasem Aldmour
2025-06-13 15:33:48 +02:00
committed by GitHub
parent 879114b572
commit aa273745ec
7 changed files with 548 additions and 368 deletions

View File

@@ -1050,11 +1050,10 @@ export class WorkflowExecute {
private getCustomOperation(node: INode, type: INodeType) {
if (!type.customOperations) return undefined;
if (!node.parameters) return undefined;
if (!node.parameters && !node.forceCustomOperation) return undefined;
const { customOperations } = type;
const { resource, operation } = node.parameters;
const { resource, operation } = node.forceCustomOperation ?? node.parameters;
if (typeof resource !== 'string' || typeof operation !== 'string') return undefined;
if (!customOperations[resource] || !customOperations[resource][operation]) return undefined;