Indicate to an ajax process that the delayed job has completed
I have a Rails 3 app that uses delayed_job to fetch some data (with a class method) when the user hits the page. How can I indicate to the ajax process that the class method has run (so that I can stop polling)? EDIT: To clarify, I want to know when the delayed_job has run, not when the ajax process has succeeded. Then I want to pass the delayed_job completed status to the running ajax process. Typically, the best way to do this is to store, in your database, an indication of the job's progress. For instance: class User def perform_calculation begin self.update_attributes :calculation_status =