Query times out on automatic runs in Workflow

I have a workflow setup that uses a very simple query.
Every time I run the query manually by pressing the run block button, it returns the data within 2 seconds.
If I run the workflow manually by pressing the run button on the top right, it works.
However, if the workflow attempts to run on the startTrigger, it fails. The log is not providing me with anything useful and just says that the query has timed out.

What could be the issue?

Connect to PostgreSQL

What's the startTrigger? A schedule? The Run button will run the Workflow with whatever data you have in your startTrigger's Test JSON. A scheduled run won't, you'd need to hard-code that data in to a code block or directly into your query.