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
I ended up using a PeriodicalUpdater plugin for jQuery. Here’s the link:
http://www.360innovate.co.uk/blog/2009/03/periodicalupdater-for-jquery/