mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
🐛 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:
parent
54f949a972
commit
14329b2eb4
|
@ -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([
|
||||
|
|
Loading…
Reference in a new issue