Displaying 1 result from an estimated 1 matches for "nacworker".
Did you mean:
halworker
2007 Oct 29
1
BackgrounDRb, Schedule and Clean Up
...te the worker in order to end the Ruby process. I have noticed however that the sockets in /tmp/backgroundrb.#{pid} seem to exist until the entire backgroundrb server is stoped. Should these clear up on their own without a stop or am I doing something wrong?
At current for testing I have...
class NACWorker < BackgrounDRb::Worker::RailsBase
def do_work(args)
logger.info("Work Started")
sleep 0.5
logger.info("Work Done")
delete
end
end
NACWorker.register
Is delete the corrrect way to end the worker, I''ve had a look through RubyDoc and can''t...