Are there any Rails Plugins that use JS to poll the server for completion of a background process?

Posted by btelles on Stack Overflow See other posts from Stack Overflow or by btelles
Published on 2010-04-06T02:59:35Z Indexed on 2010/04/06 3:03 UTC
Read the original article Hit count: 392

I know it might be simple to write some polling JS that asks the Rails application if it has completed a background job. But I wonder if anyone has already packaged up this functionality as a plugin.

Basically, I have a few delayed_jobs running, and am looking for a plugin that will poll the server for completion of a particular job, then activate a callback when it finds that the job is complete.

Any ideas anyone?

Berns

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about JavaScript