I have a ruby on rails app using the resque gem to process background jobs. I have users trigger background jobs that can take upwards of 10 minutes to complete (they’re processing a ton of data). What is the best way to alert the user when the job has completed?
I’ve seen the answer here about using resque-status, is that the only solution? Or is there another way to alert the user through normal resque (which I’ve already implemented)?
If you intend to notify a user asynchronously, you have three options:
Those are pretty much the only things I can think of. I would personally go with a combination of 1 and 2; send them an email on completion, and notify them (and provide a link in the notification) the next time they log in.