diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts index 64bebb7ac..ab29eaa4c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts @@ -328,6 +328,9 @@ export default class WorkflowPlugin extends Plugin { const execution = (await this.db.getRepository('executions').findOne({ filter: { status: EXECUTION_STATUS.QUEUEING, + 'workflow.id': { + [Op.not]: null, + }, }, appends: ['workflow'], sort: 'createdAt',