私はffmpegとbeanstalkに非常に慣れていないので、少し助けが必要です. Beanstalk を使用して、ffmpeg が変換するファイルをキューに入れたいと考えています。私はbeanstalkdをダウンロードしてインストールし、起動しました(それが示唆するようにlibeventもインストールしました)。beanstalkd用のPHPクライアントをダウンロードしました。
http://sourceforge.net/projects/beanstalk/
クライアントをダウンロードしてサーバーに配置した後、クライアントからの例を使用するだけで、このエラーが発生します。
致命的なエラー: 1138 行目の /Users/wasimkhamlici/Sites/vibenation/beanstalk/src/BeanStalk.class.php で最大実行時間が 30 秒を超えました
これは例のコードです。
$beanstalk = BeanStalk::open(array(
'servers' => array( '127.0.0.1:11300' ),
'select' => 'random peek'
));
// As in the protocol doc.
$beanstalk->use_tube('foo');
// As in the protocol doc.
$beanstalk->put(0, 0, 120, 'say hello world'); // Add a job to the queue with highest priority,
// no delay, 120 seconds TTR, with the contents
// 'say hello world'.
// NOTE: the put() method here supports a final optional
// argument, a tube name. If supplied, the server will
// first switch to that tube, write the job, then switch
// back to the old tube again.
// As in the protocol doc.
$job = $beanstalk->reserve(); // Assuming there was nothing in the queue before
// we started, this will give us our 'hello world'
// job back.
// This is a BeanQueueJob object.
echo $job->get(); // Output: 'say hello world'
Beanstalk::delete($job); // Delete the job.
こんにちはと言うだけの非常に簡単なスクリプトですが、タイムアウトしています。誰でも助けてもらえますか?