Stuck when run is triggered via API call but not on dashboard?
I have a project that let's me upload videos on google cloud storage (it is very bare and that's the only thing that it does at the moment).
If I trigger the request form serverless dashboard, the job gets completed, but if it is triggered via API it is stuck forever
this is what the code looks like:
Any Ideas?


44 Replies
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
@Jason not 100% sure but I have a hunch that it gets stuck in this function (based on the progress message)
but that doesn't explain why it works if I trigger it via dashboard but not via API?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
sorry, this is what my handler looks like - it doesn't really do anything at the moment other than downloading the same file and uploading it to GCS
and this is what my docker looks like:
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I cancel it when it gets too long, but sometimes I come back after around 30mins or so and it is still processing, but when I trigger it via dashboard it would only take a couple of seconds
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I mean "In Progress" status
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
or there might be some error? that keeps retryingthe code I sent you was a refactored version, this was the first version that has the same issue, at first I thought something is failing that's why it stuck so i added retry event and error handlers, but that doesn't seem to be the case
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
so this one, I tried running this like 3 minutes ago and still processing. it is stuck in
Generating signed URL..
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
this is what the logs look like

Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
the RunPodLogger doesn't seem to work
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
is the handler running? why does it stop immediately
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
all the workers are on
idle as well
lemme try using print and update you guys.Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I have adjusted the concurrency to return 5 and use print() directly but it is still the same 🤔

I even waited for the build to complete
sorry, how would I know if the handler is running?
HI @Jason ok, it looks like the logs are transitioned to the one above once it is "completed" and I was able to capture the worker logs before it transitioned, as you can see on this log it says "Job completed successfully" there was even a "Finished." message after that, and this is what my code looks like (file attached).
the
is right before my return on my handler, yet the status of my job is still tagged as
IN PROGRESS@light
Escalated To Zendesk
The thread has been escalated to Zendesk!
Ticket ID: #16867
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Hmm this is kind of weird try to open a ticketThank you so much!
What happens if you do runsync?
instead of run
@riverfog7
ok I just tried it, very weird thing is happening:
If I run this from my proxy API (this is in NodeJS):
data would return:
meaning it has been
COMPLETED BUT If I visit the dashboard it would show as IN PROGRESS, calling the API to check for the status of job id, it would return IN PROGRESS then after a couple of minutes it would get removed from my "requests" panel leaving no trace of that ever happening.
Although In reality, I will not use runsync in my project since it is a proxy API and I do not want to have timeout errors if my process in the future would take too long to finish. I would rather use run and poll the status.the request getting removed part is expected
i think i saw that runsync operations have short TTL in the docs
anyways the API returning IN_PROGRESS is strange and must be a runpod side problem
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
yes that is correct, I will try to record my screen later to show what it looks like.
here's a record demo of the bug: https://app.canvid.com/share/fi_01JT2XVCCAZ8X47529YT5KY00E
Canvid
Runpod API bug
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I clicked the "Open ZenDesk ticket" above, are there any way of opening a ticket or that's it? (I may have entered the wrong email, but I guess that's fine?)
So on /runsync it says it's done but in status it's not?exactly.
It looks like a product demo😆 😆
Anyways its 100% runpod's fault
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
haha kind of an off topic but - we are using AI features to make screen recording look more professional with few edits (mine is very bare tho as I did not even edit it)
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
@light : I have updated your ticket with some suggestion, can you please try that when you get a chance
Hi @₳Ñ₳𝕄îӃ₳ I replied on the email, but will copy-paste my reply here:
@light : Can you please have a look in the ticket when you get a chance. I need few details to involve our engineering team.
@₳Ñ₳𝕄îӃ₳ sure, I have sent you 2 recordings of what is happenning and explaining the code. Let me know if it helps.
