Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You should consider moving this long running process to a background task, so you can immediately give feedback to the user. Once the background job has been submitted, depending on your background processing engine, you will be able to check the status of jobs. It's probably simple to keep track of the status yourself (depending on your task). Use either Redis or just in your database (create a separate table for this). Once the job has been submitted, you need to return the id of the job which you can use to poll for updates.</p> <p>Create a new controller (or action) that you can use jQuery + Ajax and poll for changes. giving it a job_id (which your previous action returned) </p> <p>Please also look at: Faye: <a href="http://faye.jcoglan.com/" rel="nofollow noreferrer">http://faye.jcoglan.com/</a>, <a href="http://railscasts.com/episodes/260-messaging-with-faye" rel="nofollow noreferrer">http://railscasts.com/episodes/260-messaging-with-faye</a> Goliath: <a href="http://postrank-labs.github.com/goliath/" rel="nofollow noreferrer">http://postrank-labs.github.com/goliath/</a></p> <p><a href="http://railscasts.com/episodes/229-polling-for-changes" rel="nofollow noreferrer">http://railscasts.com/episodes/229-polling-for-changes</a></p> <p>Delayed Job, Resque, etc.</p> <p>Oh, If you are just looking for a simple file upload progress indicator, see this <a href="https://stackoverflow.com/questions/2287007/rails-upload-progress-bar">Rails, upload progress bar</a></p> <p>You can try the streaming technique as well, lots of info on that here: <a href="https://stackoverflow.com/questions/3507594/ruby-on-rails-3-streaming-data-through-rails-to-client">Ruby on Rails 3: Streaming data through Rails to client</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload