everyone
basic environment:
Centos5.6
Lravel5.6,
horizon: ^ 1.0
Supervisor management process
PHP has opcache cache
horizon configuration (comments removed)
<?php
return [
"use" => "default",
"prefix" => env("HORIZON_PREFIX", "horizon:"),
"waits" => [
"redis:default" => 60,
],
"trim" => [
"recent" => 60,
"failed" => 10080,
],
"environments" => [
"production" => [
"supervisor-1" => [
"connection" => "redis",
"queue" => ["default"],
"balance" => "simple",
"processes" => 10,
"tries" => 3,
"timeout" => 0,
],
],
"local" => [
"supervisor-1" => [
"connection" => "redis",
"queue" => ["default"],
"balance" => "false",
"processes" => 1,
"tries" => 3,
"timeout" => 0,
],
],
],
];
.env file related configuration
QUEUE_DRIVER=redis
question
after the queue is restarted, the newly added code does not take effect. The restart method I try to use has the following three ways:
php artisan horizon:terminate
supervisorctl restart all
php artisan queue:restart
does not take effect. The cache of opcache has been cleared. I would like to ask my teammates how to solve such a problem.