{$lang->cmd_queue_description}

{$XE_VALIDATOR_MESSAGE}

## {$lang->subtitle_queue}

{$lang->cmd_queue_enabled}
{$lang->cmd_queue_enabled}

{$lang->cmd_queue_enabled_help}

{$lang->cmd_queue_driver}

{$lang->cmd_queue_driver_help}

{@ $conf_names = array_merge($driver_definition['required'], $driver_definition['optional'])} {@ $conf_value = escape(config("queue.$driver_name.$conf_name"))} {@ $text_keys = ['host', 'user']} {@ $number_keys = ['port', 'dbnum']} {@ $password_keys = ['pass']}
{$lang->cmd_queue_config_keys[$conf_name]}
{$lang->cmd_queue_config_keys[$conf_name]}
{$lang->cmd_queue_config_keys[$conf_name]}

## {$lang->cmd_queue_call_script}

{@ if (function_exists('posix_getpwuid') && function_exists('posix_getuid')): $user_info = posix_getpwuid(posix_getuid()); if (!empty($user_info['dir'])): $user_info['dir'] .= DIRECTORY_SEPARATOR; endif; else: $user_info = []; $user_info['name'] = $lang->msg_queue_instructions['same_as_php']; endif; }

{sprintf($lang->msg_queue_instructions['crontab1'], $user_info['name'] ?? 'PHP', $user_info['dir'] . 'logs')|noescape}

    * * * * * php {\RX_BASEDIR}index.php common.cron >> {$user_info['dir']}logs{\DIRECTORY_SEPARATOR}queue.log 2>&1

{$lang->msg_queue_instructions['crontab2']|noescape}

{$lang->msg_queue_instructions['webcron']|noescape}

    {getFullUrl('')}common/scripts/cron.php?key={config('queue.key')}

{$lang->msg_queue_instructions['systemd1']|noescape}

    [Unit]
    Description=Rhymix Queue Service

    [Service]
    ExecStart=php {\RX_BASEDIR}index.php common.cron
    User={$user_info['name']}

{$lang->msg_queue_instructions['systemd2']|noescape}

    [Unit]
    Description=Rhymix Queue Timer

    [Timer]
    OnCalendar=*-*-* *:*:00
    Unit=rhymix-queue.service

    [Install]
    WantedBy=multi-user.target

{$lang->msg_queue_instructions['systemd3']|noescape}

    systemctl daemon-reload
    systemctl start rhymix-queue.timer
    systemctl enable rhymix-queue.timer

{$lang->cmd_queue_webcron_key}
{$lang->cmd_queue_interval}
{$lang->unit_min}

{sprintf($lang->cmd_queue_interval_help, ini_get('max_execution_time'))|noescape}

{$lang->cmd_queue_process_count}

{$lang->cmd_queue_process_count_help}