2014-06-26 57 views
1

我正在使用Beanstalkd通過ffmpeg處理視頻文件。
我正在使用https://github.com/pda/pheanstalk PHP客戶端
我正面臨以下問題。
a)有時作業沒有添加到Beanstalkd Tube中,
b)如果作業被添加到管中,有時ffmpeg未按預期處理。
將作業添加到beanstalkd

任何想法, 提前 等待答覆

感謝卡

回答

0

有三種情況,爲什麼一份工作可以放失敗:

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

謝謝您的回覆, 我在管內增加一個簡單的JSON對象, 考慮我增加了作業管「ABC」, 如果管還沒有添加任何工作過去1個小時並且我嘗試在第一次嘗試時添加作業失敗。 如果立即再試,它會被添加。 – RCOOR

+0

@ Pentium10:是否可以更改該默認值? – user3097712