Two high memory workers swamped and would like to queue jobs waiting

Hello,

I have two workers which process a queue. They both run high memory activities. Is there a way to say that when they are both loaded, the queue does not start incoming submissions? At the moment the activity is started and runs out of memory.

Matt

WorkerOptions->setMaxConcurrentActivityExecutionSize (default 200) is per worker limit on number of parallel activities it can execute.