fix(plugin-workflow): ignore queuing executions which workflow has been deleted (#2808)

This commit is contained in:
Junyi 2023-10-12 18:12:15 +08:00 committed by GitHub
parent a3de91b37f
commit 0099b0b280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',