Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous Processing does not complete for large files #25

Closed
namor opened this issue Dec 28, 2014 · 3 comments
Closed

Synchronous Processing does not complete for large files #25

namor opened this issue Dec 28, 2014 · 3 comments

Comments

@namor
Copy link

namor commented Dec 28, 2014

As per documentation, to do synchronous processing

# loop until processing is finished
until response.finished?
  sleep 1; response.reload! # you'll want to implement a timeout in your production app
end

I use this code but it locks up the ruby thread indefinitely (even though Assembly has completed) only when i upload large files ~ 3GB
< 1 gb files works fine which makes this a very odd problem

Is there an internal timeout which is not caught?

@rmehner
Copy link
Collaborator

rmehner commented Dec 28, 2014

Hey!

Does this happen for every upload that is 3GB big or just a particular one? It's interesting to see, as we just query the assembly status all the time so the only time this code can lock up is when the assembly never returns the status finished. Can you check what the assembly status is? response['ok'] is where it should be in. Maybe log that out in every nth loop.

The implementation of finished? is actually pretty simple, so I suspect that we don't get the right status back as response.

Maybe @tim-kos or @kvz also can look into the specific assembly on the backend side of things.

@kvz
Copy link
Member

kvz commented Dec 29, 2014

Hi there, if it's one particular assembly causing issues, feel free to send its id to support@transloadit.com so it will be a private ticket.

@rmehner
Copy link
Collaborator

rmehner commented Dec 14, 2015

Closing this, nearly a year ago without any new information :)

Feel free to reopen this if you have more information. Have a great day!

@rmehner rmehner closed this as completed Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants