Skip to main content

Name

ec_thread_pool_get_queue_size — get the number of jobs queued against a jobclass

Synopsis

ec_thread_pool_get_queue_size { jobclass }

Description

This action returns the number of jobs currently queued against the named jobclass. It can be run in any phase. One suggested use case is turning away incoming mail with a 4XX code when an antivirus module's queue of messages to scan grows beyond some maximum size.

Was this page helpful?