首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >向beanstalkd添加作业

向beanstalkd添加作业
EN

Stack Overflow用户
提问于 2014-06-26 11:05:40
回答 1查看 1.1K关注 0票数 1

我使用Beanstalkd通过ffmpeg处理视频文件。

我使用的是https://github.com/pda/pheanstalk PHP-Client。

我面临以下问题。

代码语言:javascript
复制
 a) sometimes job is not adding to Beanstalkd Tube,
代码语言:javascript
复制
 b) if job is added to tube sometimes ffmpeg is not processing as expected.

任何想法,等待答复

事先谢谢卡西

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-06-26 18:24:43

作业可能失败的原因有三种:

代码语言:javascript
复制
- "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.

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24428837

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档