feat: Implement new partial execution logic for acyclic workflows (no-changelog) (#10256)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
@@ -92,6 +92,7 @@ export class WorkflowExecutionService {
|
||||
{ workflowData, runData, startNodes, destinationNode }: WorkflowRequest.ManualRunPayload,
|
||||
user: User,
|
||||
pushRef?: string,
|
||||
partialExecutionVersion?: string,
|
||||
) {
|
||||
const pinData = workflowData.pinData;
|
||||
const pinnedTrigger = this.selectPinnedActivatorStarter(
|
||||
@@ -135,6 +136,7 @@ export class WorkflowExecutionService {
|
||||
startNodes,
|
||||
workflowData,
|
||||
userId: user.id,
|
||||
partialExecutionVersion: partialExecutionVersion ?? '0',
|
||||
};
|
||||
|
||||
const hasRunData = (node: INode) => runData !== undefined && !!runData[node.name];
|
||||
|
||||
@@ -43,7 +43,12 @@ export declare namespace WorkflowRequest {
|
||||
|
||||
type NewName = AuthenticatedRequest<{}, {}, {}, { name?: string }>;
|
||||
|
||||
type ManualRun = AuthenticatedRequest<{ workflowId: string }, {}, ManualRunPayload>;
|
||||
type ManualRun = AuthenticatedRequest<
|
||||
{ workflowId: string },
|
||||
{},
|
||||
ManualRunPayload,
|
||||
{ partialExecutionVersion?: string }
|
||||
>;
|
||||
|
||||
type Share = AuthenticatedRequest<{ workflowId: string }, {}, { shareWithIds: string[] }>;
|
||||
|
||||
|
||||
@@ -405,6 +405,9 @@ export class WorkflowsController {
|
||||
req.body,
|
||||
req.user,
|
||||
req.headers['push-ref'] as string,
|
||||
req.query.partialExecutionVersion === '-1'
|
||||
? config.getEnv('featureFlags.partialExecutionVersionDefault')
|
||||
: req.query.partialExecutionVersion,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user