I am having trouble finding the gem/solution I need to solve this problem. So basically when a request comes in, I want to fork a thread (or background process) and start running that immediately (with no delay). However, s I tried using dalayed_jobs but it seemed to want to a queue, and won't just start the command right away. Is there any way to do this in rails?
Update
#user_controller.rb
def show
@user = User.find(params[:id])
@user.update_user #process to be forked
render json:@user
end
#user.rb
def update_user
# code to update user
end
handle_asynchronously :update_user
Thanks,
DO