使用未定义的常量SIGKILL-在Laravel 5.7队列中假定为“ SIGKILL”

时间:2018-12-17 08:45:31

标签: mysql linux laravel eloquent queue

我从AJAX请求中收到此错误“使用未定义的常量SIGKILL-假定为'SIGKILL'”,这将启动此artisan命令->

        Artisan::call('queue:work', [
        'connection' => 'database',
        '--memory' => '700',
        '--tries' => '1',
        '--timeout' => '35000',
        '--queue' => 'updates'
    ]);

我正在使用Laravel 5.7作为应用程序框架。

工作是通过数据库,配置->

管理的
        'database' => [
           'driver' => 'database',
           'table' => 'jobs',
           'queue' => 'default',
           'retry_after' => 18000,
       ],

问题最近出现了。这很奇怪,因为以前没有麻烦了,而且所有这些“系统”都正常工作。现在,worker可以很好地完成一些工作,但是随后出错了,并在数据库中写入表“ failed_jobs”->

ErrorException: PDOStatement::execute(): MySQL server has gone away in /srv/migration-xxxxxx-xxxx-xxxxxx/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:458

作为数据库,我正在使用Microsoft Azure MySQL数据库。咨询后的Microsoft专家,没有发现任何问题..服务器正常工作。查询就可以了,没有那么大的失败。

请帮助,不知道该怎么办,或者出了什么问题...

0 个答案:

没有答案