How to Diagnose Out Of Memory Errors at an Endpoint in a Workflow Despite Increasing Memory and Having a Non-Large Payload?

It’s 12:10 now so in 2 hours

I’m looking at your workflow and the public Google Cloud components import quite a few npm packages:

"@google-cloud/logging"
"@google-cloud/storage"
"@google-cloud/bigquery"
"@google-cloud/compute"
"@google-cloud/bigquery-data-transfer"

Each step imports all the packages it uses, so having multiple steps that import many or large packages may result in an OOM error

You mentioned the workflow was running okay before — was there a change or were steps added in the last deployment?

Hmm :thinking_face: I set both of my workflows to 768 and we’ll see, there exactly the same except one runs at 9AM and the other at 2:00PM and they find different videos in that spreadsheet is the only difference.

If you want to see the other one

https://pipedream.com/@weirdorfunnyfacts/projects/proj_zNsq4pq/youtube-sunrise-trivia-p_MOCaZ9M/inspect

This one the max video size is much smaller around 20 MB though.

Hmm yeah looks like the exact same steps yeah?

Is there a way to pass the public URL for the GD video instead of downloading it to /tmp?

Hmm :thinking_face: and just have YouTube pull it directly from Google Drive :thinking_face:

Yeah, I added in a couple more Google Cloud steps. I guess I meant that the trigger was working fine, and now it wasn’t.

Is there any workaround to the run this where the packages are only imported once? Like can I do these steps all in a Code step for example?

I’ll mess around with it and see if that would work

Yeah, I added in a couple more Google Cloud steps. I guess I meant that the trigger was working fine, and now it wasn’t.
Oh what happened to the trigger?

Is there any workaround to the run this where the packages are only imported once? Like can I do these steps all in a Code step for example?
Yes, that would be a workaround

I am just speaking poorly today…

From my view the trigger was what as causing the OOM error.

Ah yeah, np that is what it looks like

But you have now clarified that it is the steps and the loading of the relevant libraries.

Yeah exactly!

Can “Run Query” step run multiple queries? eg. separated by a “;”?

Not currently, but it makes sense to me we could build an action that runs multiple queries