bigbluebutton-Github/record-and-playback/core/Rakefile
Leonardo Crauss Daronco 72813a908c Move sanity, process and publish rap workers to run in resque
Same as 1bcdc45 but for the other scripts.
2017-07-13 14:36:43 -03:00

17 lines
589 B
Ruby

require 'resque/tasks'
task "resque:setup" => :environment do
props = BigBlueButton.read_props
redis_host = props['redis_host']
redis_port = props['redis_port']
Resque.redis = "#{redis_host}:#{redis_port}"
end
task :environment do
require File.expand_path('../lib/recordandplayback', __FILE__)
require File.expand_path('../scripts/rap-archive-worker', __FILE__)
require File.expand_path('../scripts/rap-sanity-worker', __FILE__)
require File.expand_path('../scripts/rap-process-worker', __FILE__)
require File.expand_path('../scripts/rap-publish-worker', __FILE__)
end