I’m calling Bj from inside a controller in rails.
Its running a simple script that logs the user to the database.
Obviously this isn’t a good candidate for a background job, this is
just something simple I’m using to test.
bj script code
When I shutdown rails, I get a timeout error from mongrel
Any ideas why mongrel is holding on to that thread? I am calling
exit_success! at the end of my run action in the bj script, it appears
the script is exiting properly.
I also find it strange that the sessions_controller is referred to in