Adding Job to beanstalkd

2019-08-14 04:18发布

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条回答
贼婆χ
2楼-- · 2019-08-14 04:51

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.

查看更多
登录 后发表回答