Hi KarthickRaja, TaskQueue is a way to run background tasks asynchronously on the Mendix backend, outside the user’s request thread. It helps handle long-running or resource-intensive jobs without blocking the UI or user interactions.
TaskQueue:
Avoid UI freezing or timeout by running heavy tasks in the background.
Scale workloads by processing queued tasks one by one or in parallel.
Improve app performance and user experience.
How does TaskQueue work on the backend?
When you enqueue a task, Mendix stores it in a persistent queue.
The TaskQueue worker process runs independently on the backend and picks tasks from the queue in order.
The worker executes the associated microflow/nanoflow for each task.
Results or exceptions are logged; the task can be retried or marked as failed.
This happens outside the user's session, so the UI stays responsive.
Important Notes:
TaskQueue microflows cannot interact with the UI directly (no showing pages or popups).
They must be idempotent or designed to handle retries gracefully.
You can monitor TaskQueue status via the Mendix Developer Portal or logs.
TaskQueues are great for bulk processing, sending emails, report generation, or integration jobs.
I hope this one helps you! :)