How to detect task overruns

rtel ulTaskNotifyValueClear seems to work but that does not solve the problem because if task is executing (notification was taken) when new notification is sent then count is 1 which does not indicate the problem when there is apparently one there.

I wonder if I can somehow query task state and use that for detecting multiple notifications. Something like eTaskGetState but that has some limitations for using in ISR. Other ones require configUSE_TRACE_FACILITY which is not feasible. Any suggestions?

Regards,
Eugene