[Backgroundrb-devel] No more kill() ?

Chetan Sarva csarva at operative.com
Tue Sep 23 10:37:41 EDT 2008


We just upgraded to 1.0.4 (from a way old version) and noticed that  
MetaWorker::kill() no longer exists. Is there a suggested replacement  
or has the error handling idiom changed? For example, we had something  
like this:

	def do_work(args)
		kill() if not args.to_i 	
		restore = Restore.find(args)
		kill() if not restore # job not found

The understanding being that kill() made sure that the worker process  
cleaned up properly. Should we now just return or raise an exception?  
What is the best practice here?



More information about the Backgroundrb-devel mailing list