You are here

function video_cron_queue_info in Video 7.2

Same name and namespace in other branches
  1. 7 video.module \video_cron_queue_info()

Implements hook_cron_queue_info().

The queue timeout is the value for the entire cron run, not just one item, so the timeout is set to the timeout of one video times the maximum number items in the queue.

File

./video.module, line 295
All module hooks implementation can be found in this file.

Code

function video_cron_queue_info() {
  return array(
    'video_queue' => array(
      'worker callback' => 'video_queue_process',
      'time' => 60 * variable_get('video_transcode_timeout', 5) * variable_get('video_ffmpeg_instances', 5),
    ),
  );
}