Re: Handling task process failure

2015-07-16 Thread Yi Pan
Hi, Dmitry, There isn't the best way for all scenarios, IMO. For example, if the exception is critical and the application can not afford to ignore the failure, throw the exception uncaught is proper, which would fail the container and allows the application to restart from the previous

Handling task process failure

2015-07-16 Thread Dmitry Minkovsky
Suppose my task's process method fails for some reason. Say the problem is not in the message but is attributable to some external condition: a service is down, a network partition. What is the best way to handle such failures? Currently I am just what seems natural and writing the failures to a