forked from External/greenlight
more testing and code cleanup and enable coverage reports on circle
This commit is contained in:
@ -15,27 +15,10 @@
|
||||
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
class EndMeetingJob < ApplicationJob
|
||||
include BbbApi
|
||||
|
||||
queue_as :default
|
||||
|
||||
def perform(room, meeting)
|
||||
tries = 0
|
||||
sleep_time = 2
|
||||
|
||||
while tries < 4
|
||||
bbb_res = bbb_get_meeting_info("#{room}-#{meeting}")
|
||||
|
||||
if !bbb_res[:returncode]
|
||||
ActionCable.server.broadcast "#{room}-#{meeting}_meeting_updates_channel",
|
||||
action: 'meeting_ended'
|
||||
break
|
||||
end
|
||||
|
||||
sleep sleep_time
|
||||
sleep_time = sleep_time * 2
|
||||
tries += 1
|
||||
end
|
||||
|
||||
ActionCable.server.broadcast "#{room}-#{meeting}_meeting_updates_channel",
|
||||
action: 'meeting_ended'
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user