-
Notifications
You must be signed in to change notification settings - Fork 16
TaskSchedulerConfiguration
Brian Lehnen edited this page Apr 8, 2026
·
3 revisions
The async consumer queue uses a task scheduler to limit concurrency. Generally speaking in this mode, you use just 1 worker to feed messages to the task scheduler. If processing many short tasks, you may find that you need multiple workers reading messages from the transport.
- Maximum threads
This controls how many threads the task scheduler will use to process messages. If the scheduler is full, workers will block until a thread is free.
taskScheduler.Configuration.MaximumThreads = 4;- Wait for thread pool to finish
How long to wait for the thread pool to finish before panicing. Generally speaking, the queue waits for all tasks to finish before trying to shutdown the thread pool.
taskScheduler.Configuration.WaitForThreadPoolToFinish = TimeSpan.FromSeconds(5);For any issues please use the GitHub issues