From db5e205375218f4ba247b1bce255bae2546ad53b Mon Sep 17 00:00:00 2001 From: Gregory Martin Date: Fri, 30 Mar 2018 10:52:44 -0400 Subject: [PATCH] Debug HEAL --- control/veda_heal.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/control/veda_heal.py b/control/veda_heal.py index d9dc643..542135f 100644 --- a/control/veda_heal.py +++ b/control/veda_heal.py @@ -67,9 +67,20 @@ def send_encodes(self): # unreliable and times out. For a completed Video, VEDA heal will keep doing this unless # the Video is old enough and escapes from the time-span that HEAL is picking up on. # cc Greg Martin - if len(encode_list) > 0: - self.val_status = 'transcode_queue' + if len(encode_list) == 0: + LOGGER.info('[ENQUEUE] {studio_id} | {video_id}: Nothing to queue'.format( + studio_id=v.studio_id, + video_id=v.edx_id, + )) + api_call = VALAPICall( + video_proto=None, + video_object=v, + val_status=self.val_status, + ) + api_call.call() + continue + self.val_status = 'transcode_queue' api_call = VALAPICall( video_proto=None, video_object=v,