On Tue, 2008-09-23 at 10:37 -0400, Chetan Sarva wrote:> 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?
>
call "exit" from your workers.