This reestablishes the pre-setTaskState behavior, that is to not
send e.g. EXCEPTION after a custom exception in the exception/
runtime error/fatal error cases.
Since we were doing it purely from within TaskContext::exception() before,
only the "real" state was sent. Now, setTaskStates gets called after
the state change and this was getting published.
For instance, an updateHook that did before
exception(CUSTOM);
would only publish CUSTOM while it is now doing CUSTOM, EXCEPTION. Even exception() would now publish EXCEPTION twice.
This reestablishes the pre-setTaskState behavior, that is to not send e.g. EXCEPTION after a custom exception in the exception/ runtime error/fatal error cases.
Since we were doing it purely from within TaskContext::exception() before, only the "real" state was sent. Now, setTaskStates gets called after the state change and this was getting published.
For instance, an updateHook that did before
would only publish
CUSTOM
while it is now doingCUSTOM
,EXCEPTION
. Evenexception()
would now publish EXCEPTION twice.