Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下,这个队列参数配置啥意思,看源码没太看明白 #395

Open
smithyj opened this issue Jan 19, 2025 · 0 comments
Open

Comments

@smithyj
Copy link

smithyj commented Jan 19, 2025

@yunwuxin
不知道下面自己的理解对不对,能否解答下
worker_num // 消费进程数
delay // ?
sleep // 消费进程间隔时间
tries // 单个任务最大执行次数,0为不限制
timeout // 单个任务的最大执行时间

//队列
    'queue'      => [
        'enable'  => true,
        'workers' => [
            // 默认队列
            'default' => [
                // 消费进程
                'worker_num' => 1,
                'delay'      => 0,
                // 消费进程间隔时间
                'sleep'      => 3,
                // 单个任务最大执行次数,0为不限制
                'tries'      => 0,
                // 单个任务的最大执行时间
                'timeout'    => 60,
            ],
        ],
    ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant