Hi Neethu, to handle TaskQueue failures and track task execution, follow these best practices:
Error Handling: Use custom error handling in your TaskQueue microflow. Catch errors using $latestError/Message and log them (e.g., via a custom log entity or LogMessage action).
Retry Failed Tasks: Implement manual retry logic. Track RetryCount in a related object or control entity. If a task fails and retries < max, re-queue it uses QueueTask.
Track Task Status:Create a TaskStatus entity with fields like Status (Queued, InProgress, Succeeded, Failed), StartTime, EndTime, and ErrorMessage. Update it within the TaskQueue microflow to monitor execution.
This gives you full visibility, control, and retry capability for background tasks.
Task Queue | Mendix Documentation - > Check this documentation for further helps
I hope this one helps you! :)
Hi Neethu,
To monitor task queue you can use TaskQueueHelpers module. It will provide you all the details about task.
Doc: Task Queue
Module link: Task Queue Helper
Thanks,
Mobin