I have a cron-tab-triggered workflow which does a fair share of http requests.
Once in every week or so it timeouts, and I can’t seem to find a reason why.
And every time I manually retry (per the Run Now trigger button), it runs with no error.
I (crudely) placed a few stopwatches to try and debug where it timeouts (if it is within my code), but they don’t ever seem to be reached - the data store is not updated.
I’m sorry to hear that you’re experiencing timeouts with your cron-triggered workflow. To help you troubleshoot the issue, I recommend checking the following:
Make sure you’re not exceeding the rate limit for cron jobs, which is no more than twice a minute. If you encounter a rate limit error, wait one minute and try again.
Inspect the execution logs for any errors or issues. You can find these logs in the Inspector. Click on any line in the Inspector to view the details of a specific run.
Check the logs for each code step in your workflow. If you’re using console.log() or other functions that print output, the logs should appear directly below the step where the code ran.
If you’re making HTTP requests in your workflow, ensure you’re using the axios constructor from the @pipedream/platform package. This helps manage timeouts and retries more effectively.
If you’re still experiencing issues after checking these points, please don’t hesitate to visit https://pipedream.com/support for more support options.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.
Hi @ericwu91! Have you tried raising your workflow timeout settings to 1min or more? Since it makes many (sync?) HTTP requests, the total time for each one adds up
I have not, since I’m on a free plan; Still, the timeouts don’t seem to happen within the code. I’ve placed a few stopwatches to measure each of the (async) http requests, but they aren’t even ever reached.
Would you mind raising to see if that’s the issue?
The default timeout is 30s, the free plan allows for up to 5min. If the workflow doesn’t finish execution of all steps, it raises the error