将工作添加到beanstalkd [英] Adding Job to beanstalkd
问题描述
我使用Beanstalkd通过ffmpeg处理视频文件。
我正在使用 https: //github.com/pda/pheanstalk PHP-客户端
我面临以下问题。
a)有时候工作没有添加到Beanstalkd Tube, br />
b)如果作业添加到管中,有时候ffmpeg没有按预期处理。
I am using Beanstalkd for processing video files via ffmpeg.
I am using https://github.com/pda/pheanstalk PHP-Client
I am facing the following issues.
a) sometimes job is not adding to Beanstalkd Tube,
b) if job is added to tube sometimes ffmpeg is not processing as expected.
任何想法,
等待回复
Any idea, Awaiting for reply
提前感谢
Karthi
Thanks in advance Karthi
推荐答案
有三种情况为什么工作可能会失败:
There are three scenarios why a job can fail on put:
- "EXPECTED_CRLF\r\n" The job body must be followed by a CR-LF pair, that is,
"\r\n". These two bytes are not counted in the job size given by the client
in the put command line.
- "JOB_TOO_BIG\r\n" The client has requested to put a job with a body larger
than max-job-size bytes.
- "DRAINING\r\n" This means that the server has been put into "drain mode"
and is no longer accepting new jobs. The client should try another server
or disconnect and try again later.
很可能你有第二个选项,我觉得这太大了。 默认值为65k。
Most probably you have the second option, I think it's just too big. The default is 65k.
这篇关于将工作添加到beanstalkd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!