How to Make the Controller wait for a Delayed Job while the rest of the App continues on?
问题 (This question is a follow-up to How do I handle long requests for a Rails App so other users are not delayed too much? ) A user submits an answer to my Rails app and it gets checked in the back-end for up to 10 seconds. This would cause delays for all other users, so I'm trying out the delayed_job gem to move the checking to a Worker process. The Worker code returns the results back to the controller. However, the controller doesn't realize it's supposed to wait patiently for the results, so