Adding Job to beanstalkd

拜拜、爱过 提交于 2019-12-11 12:47:26

问题


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

Thanks in advance Karthi


回答1:


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.

Most probably you have the second option, I think it's just too big. The default is 65k.



来源:https://stackoverflow.com/questions/24428837/adding-job-to-beanstalkd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!