From 0d300315ee1144b50bdf666f364cd02dceb2e5cf Mon Sep 17 00:00:00 2001 From: Heshan Date: Mon, 14 Mar 2011 19:14:50 +0530 Subject: Adding cron queue to the video schedular --- video.drush.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'video.drush.inc') diff --git a/video.drush.inc b/video.drush.inc index bcb03ee..8c01f6d 100644 --- a/video.drush.inc +++ b/video.drush.inc @@ -5,7 +5,7 @@ */ function video_drush_command() { $items = array(); - + $items['video-scheduler'] = array( 'description' => 'Run video transcoder scheduler', 'callback' => 'drush_video_scheduler', @@ -14,10 +14,13 @@ function video_drush_command() { '--limit' => 'Change the number of video items to transcode', ), ); - + return $items; } +/** + * Callback function + */ function drush_video_scheduler() { $limit = (int) drush_get_option('limit', variable_get('video_ffmpeg_instances', 5)); $GLOBALS['conf']['video_ffmpeg_instances'] = $limit; -- cgit v1.2.3