<?php

return [
    'modules' => [
        'ngauge-queues' => [
            'class' => PortalPeople\queues\Module::class,
            'supervisorQueues' => ['queue', 'mailqueue', 'dfqueue', 'netsuitequeue'],
            'pendingWarning' => 25,
            'pendingCritical' => 100,
            'staleReserveSeconds' => 1200,
            'heartbeatFreshFor' => 300,
            'heartbeatDirectory' => '@runtime/queue-heartbeats',
        ],
    ],

    'params' => [
        'settings' => [
            'queues' => [
                'queue' => [
                    'supervisor' => true,
                    'processes' => 1,
                    'pending_warning' => 25,
                    'pending_critical' => 100,
                    'heartbeat_file' => '@runtime/queue-heartbeats/queue.heartbeat',
                ],
                'mailqueue' => [
                    'supervisor' => true,
                    'processes' => 1,
                    'heartbeat_file' => '@runtime/queue-heartbeats/mailqueue.heartbeat',
                ],
            ],
        ],
    ],
];
