dimanche 7 juillet 2019

Do I need wait job finished before restart queue?

I am using php deployer for deploy, supervisor for laravel queue. There is a task restart supervisor immediately after restarted fpm(I am using opcache so it's necessary to restart fpm). Does the task will cause some problem?

the task code in deploy.php

task('queue:reload', function () {
    run('sudo service supervisor restart');
});
after('fpm:restart', 'queue:reload');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire