【问题标题】:Adding Job to beanstalkd将作业添加到 beanstalkd
【发布时间】:2014-06-26 11:05:40
【问题描述】:

我正在使用 Beanstalkd 通过 ffmpeg 处理视频文件。
我正在使用https://github.com/pda/pheanstalk PHP-Client
我面临以下问题。
a) 有时工作不会添加到 Beanstalkd Tube,
b) 如果将作业添加到管中,有时 ffmpeg 无法按预期处理。

任何想法, 等待回复

提前致谢 卡西

【问题讨论】:

    标签: php ffmpeg beanstalkd


    【解决方案1】:

    作业在放置时可能会失败的三种情况:

    - "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。

    【讨论】:

    • 感谢您的回复,我正在试管中添加一个简单的 Json 对象,考虑我正在向试管“ABC”添加一个工作,如果过去 1 年没有在试管中添加任何工作hr 和我尝试添加作业在第一次尝试时失败。如果立即再试一次,它会被添加。
    • @Pentium10 : 是否可以更改默认值?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-06
    • 2012-02-08
    • 2018-10-01
    • 2012-10-24
    • 2012-08-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多