Task #1290
closedSeparate processing of items in tasks
100%
Description
Version: 9.2.0-SNAPSHOT
If a long running task fails hard on processing one of the item, it doesn't continue in processing following items. Thus one broken identity/contract/role can affect other correct entities.
Please separate processing of items in tasks - just catch exception after every item.
This is especially needed in HR processes, when we use the options "After end, start the HR processes" and "After end, start the automatic role recalculation". If e.g. HrEnableContractProcess fails on one broken item, automatic role recalculation is not started at all. So we have to use workaround - scheduling these tasks one by one. This still doesn't solve the problem that one item stops other items in the same LRT.
By broken identity I mean some bad inconsistent data in identities/accounts/.... which is hard to predict.
(Please don't understand this ticket as "refactor HR processes". That is something quite different and definitely more complicated. Adding try - catch should be easy.)
Related issues