Why Does Query Terminate After One Minute When Executing Workflow With Postgres DB on Pipedream?

This topic was automatically generated from Slack. You can find the original thread here.

Hi Pipedream users, is it me or someone has faced this when executing workflow with running query against a postgres DB, query terminates after one minute, less than 1 minute query are working fine, no query timeout set on the database, workflow timeout setting more than 5 minutes, Can someone help?

Maybe the Node.js Postgres DB client itself has a default of 1 min timeout?

Are you using a pre-built Postgres DB action in your workflow? Or Node.js code directly?

its just a sql statement a function that i invoke as seen below no Node.js

Ah got it. So that still uses pipedream components under the hood.

It looks like the default options for the pg node lib are no timeout at all: pg.Client – node-postgres

It doesn’t look like any overrides are being past:

Are you sure your db server is configured to not timeout after a minute? That is the most likely issue I think

Its not configured, have just confirmed again

see screenshot below

image.png

I am migrating from shipyard since they are closing down, jobs runs fine for over 5 minutes, in pipedream it terminates after a minute

Could you check this setting too?
idle_in_transaction_session_timeout

same case 0

Hmm, then it’s looking like potentially the workflow is the culprit maybe.

Have you tried modifying the timeout on the workflow since that last time you changed it?

I wonder if the workflow’s deployment failed for some reason, maybe trying again will update the timeout

Something like changing it to 5 minutes and 1 second

let me try

after changing the timeout for the workflow to 301 seconds the step where the query takes more than one 1 minute still fails with the error I shared, i deployed and set it to run 8:00 P.M my local time but it has still failed

That is very weird. I think we troubleshot the best we could. Hopefully you can get more help by making a support ticket: Support - Pipedream

Hopefully there’s some internal logs that the PD team can see that might lead to the cause

Thanks for jumping in, Pierce! :pray::skin-tone-2:

are you connecting via a static IP? (either with a VPC in Pipedream or the Shared Static IP configuration for that account in Pipedream)