小编Keb*_*ian的帖子

Laravel 5:多个工作者 - 无法删除作业XXXXXX:NOT_FOUND

我正在使用Laravel 5创建一个网站.我正在使用带有2个管的beanstalkd队列.我有10个由daemontools监控的工人.5名工人加工A管和B管.另外5名工人只加工B管.

事情大部分时间都很有效,但偶尔管B似乎锁定了.日志显示工人正在抛出异常.

[2015-04-24 07:09:36] local.ERROR: exception 'Pheanstalk\Exception\ServerException' with message 'Cannot delete job 273812: NOT_FOUND' in /x/website/vendor/pda/pheanstalk/src/Command/DeleteCommand.php:44
Stack trace:
#0 /x/website/vendor/pda/pheanstalk/src/Connection.php(121): Pheanstalk\Command\DeleteCommand->parseResponse('NOT_FOUND', NULL)
#1 /x/website/vendor/pda/pheanstalk/src/Pheanstalk.php(384): Pheanstalk\Connection->dispatchCommand(Object(Pheanstalk\Command\DeleteCommand))
#2 /x/website/vendor/pda/pheanstalk/src/Pheanstalk.php(67): Pheanstalk\Pheanstalk->_dispatch(Object(Pheanstalk\Command\DeleteCommand))
#3 /x/website/vendor/laravel/framework/src/Illuminate/Queue/Jobs/BeanstalkdJob.php(73): Pheanstalk\Pheanstalk->delete(Object(Pheanstalk\Job))
#4 /x/website/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(46): Illuminate\Queue\Jobs\BeanstalkdJob->delete()
#5 /x/website/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(126): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\BeanstalkdJob), Array)
#6 /x/website/vendor/laravel/framework/src/Illuminate/Queue/Jobs/BeanstalkdJob.php(51): Illuminate\Queue\Jobs\Job->resolveAndFire(Array)
#7 /x/website/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(207): Illuminate\Queue\Jobs\BeanstalkdJob->fire()
#8 /x/website/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(159): Illuminate\Queue\Worker->process('beanstalkd', Object(Illuminate\Queue\Jobs\BeanstalkdJob), '20', '120')
#9 /x/website/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(113): Illuminate\Queue\Worker->pop(NULL, NULL, '120', 3, '20')
#10 /x/website/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(85): Illuminate\Queue\Worker->runNextJobForDaemon(NULL, NULL, '120', 3, '20')
#11 /x/website/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(101): Illuminate\Queue\Worker->daemon(NULL, NULL, '120', 128, 3, '20')
#12 /x/website/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(67): Illuminate\Queue\Console\WorkCommand->runWorker(NULL, NULL, '120', 128, true) …
Run Code Online (Sandbox Code Playgroud)

task-queue laravel-5

9
推荐指数
1
解决办法
2618
查看次数

是否可以在WordPress插件中使用Laravel组件?

我需要为WordPress编写一个相当复杂的插件,我想使用Laravel框架组件进行大量繁琐的工作.是否可以在不使用整个Laravel框架的情况下使用Laravel组件?

我对使用它的ORM特别感兴趣.

wordpress-plugin laravel

7
推荐指数
1
解决办法
3208
查看次数

如何在iOS上以编程方式创建和拨打VPN连接?

我最近注意到一些iOS应用程序,如Astrill VPN客户端,能够创建和拨打VPN连接.在这种特定情况下,它们似乎是Cisco IPSEC连接.我无法找到任何关于如何执行此操作的Apple官方文档.谁能告诉我这是怎么可能的?

请注意,我知道如何手动配置VPN连接.我希望我的应用程序这样做的原因是为客户提供一个白痴证明和简化的流程.

vpn network-programming objective-c ios

5
推荐指数
1
解决办法
1647
查看次数

Laravel Blade可以在沙箱环境中使用吗?

Laravel Blade可以在沙盒环境中使用,类似于Twig的沙箱扩展吗?

我需要允许用户使用模板系统,但显然不希望他们在服务器上执行任意PHP代码.

我想使用Blade,因为它已经是Laravel的一部分,但怀疑这是不可能的.

blade laravel-5

5
推荐指数
1
解决办法
486
查看次数