const SHUTDOWN_DRAIN_TIMEOUT: Duration;
Max time we give the drainer to flush pending publishes once the shutdown signal fires. After this the drainer exits even if the queue still has items.