It turned out to be that my script exit halfway because of error.
Rail is OK :-)...
User Profile
Collapse
-
Rails doesn't wait for script to finish
I have a pretty long process (40 seconds) script.
It is kicked off from one controller action from web browser.
The problem is, the Rails does not wait until the process is done. It actually stops the process at about 5 seconds, and goes to the next step.
def _run_script (my_id)
system ("my_long_runni ng_script.sh")
redirect_to :action =>'edit', :id => my_id
end...
No activity results to display
Show More
Leave a comment: