Hi,

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?


regards,

chetan
_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel

Reply via email to