Mendix supports retries for queued tasks and it keeps track of the number of retries performed per task. But there is currently no way to identify that the final retry failed, or in other words, that the task has permanently failed.
I think it would be helpful to be able to identify that a task has permanently failed, so that action can be taken if necessary (such as notifying the app administrator). Maybe an additional attribute on the task / processedtask entity could be enough, one that captures the number of scheduled retries or maybe a different status for permanently failed tasks? Or maybe even being able to configure a “failure action” when you are executing a microflow in the task queue.