Skip to content

Commit d24335d

Browse files
authored
fix:PostgresDriver execution timeout is hardcoded to 10 minutes #651 (#652)
Workaround for #651
1 parent 9b9c788 commit d24335d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-postgres-driver/driver/PostgresDriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class PostgresDriver extends BaseDriver {
8282
const client = await this.pool.connect();
8383
try {
8484
await client.query(`SET TIME ZONE '${this.config.storeTimezone || 'UTC'}'`);
85-
await client.query("set statement_timeout to 600000");
85+
await client.query(`set statement_timeout to ${(this.config.hasOwnProperty('executionTimeout')) ? this.config.executionTimeout * 1000 : 600000}`);
8686
const res = await client.query({
8787
text: query,
8888
values: values || [],

0 commit comments

Comments
 (0)