Community
Participate
Working Groups
The current contract on JobManager.beginTask requires that the caller also calls endTask even if the call to beginTask fails. This is an unusual convention which is different from almost everything else in java, and as a consequence a lot of callers have gotten it wrong (many callers invoke beginTask outside of the try block rather than inside it). We should consider making beginTask clean everything up in the event of a failure and make the subsequent call to endTask optional.
+1