Different runtime between App and Workflow

I have an App where i use the FileInput component allowing a single file.
Once the file is selected, i manually trigger a query to a workflow.

The workflow uploads the file to an API, thats working fine, the file is on the target. The workflow stats say it's roughly 6 seconds (5,34MB file)

But on the App Side, the workflow code is running over 120 seconds, until eventually the response is shown.

Anyone an idea why this happens?

Hey @whynot,

A shot in the dark, but could it be that you haven't deployed your workflow's latest version?

I'm also assuming that you have selected "Finished" in the Run until option of yoru workflow query, right?

Hi @MiguelOrtiz,
workflow is deployed, latest version.

Just ran again, after 122 seconds i get this:
image

And it's run until "finished".

I'm in a staging environment, not production, if that helps!

It's interesting that with a much smaller file generally it works (187 kB instead of 5,34 MB, just took first 4 pages of the same document)

However, still the runtime is different.
App:
image
Workflow:

Hi @whynot,

Just to confirm, these screenshots show that you upload a file to the FileInput in your app, and it triggers a workflow. The workflow run history says that workflow took ~6s, but the App UI for that same workflow says 120+s (or, in some cases, errors out)?

Does your file input have Parse files enabled? Or Upload file to Retool storage enabled? Wondering if there's some other requests on the app that are slowing things down. If Parse files is enabled, does disabling it help at all?

If this issue is still happening, can you run it again and send me the run id or the date/time (and timezone you're in) so that I can look up our logs