🐛 Fixed an issue with current executing workflows when using queues (#1483)
When running n8n in queue mode, the query to search for currently running workflows would fail on Postgres but work fine with SQLite and MySQL / MariaDB. This fix makes it work fine for all RDBMS.
This commit is contained in:
@@ -1647,6 +1647,10 @@ class App {
|
||||
|
||||
const currentlyRunningExecutionIds = currentJobs.map(job => job.data.executionId);
|
||||
|
||||
if (currentlyRunningExecutionIds.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const resultsQuery = await Db.collections.Execution!
|
||||
.createQueryBuilder("execution")
|
||||
.select([
|
||||
|
||||
Reference in New Issue
Block a user