File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,6 @@ function wait_for_file_integrity() {
182182function  stop_if_recording_inprogress()  {
183183  if  [[ " $recording_started " =  " true" ||  check_if_ffmpeg_running;  then 
184184    stop_recording
185-     wait_for_file_integrity
186185  fi 
187186}
188187
@@ -223,7 +222,6 @@ if [[ "${VIDEO_UPLOAD_ENABLED}" != "true" ]] && [[ "${VIDEO_FILE_NAME}" != "auto
223222  if  ps -p $FFMPEG_PID  > /dev/null;  then 
224223    wait  $FFMPEG_PID 
225224  fi 
226-   wait_for_file_integrity
227225
228226else 
229227  trap  graceful_exit_force SIGTERM SIGINT EXIT
239237
240238  wait_for_api_respond
241239  while  curl --noproxy " *" " Authorization: Basic ${BASIC_AUTH} " ${NODE_STATUS_ENDPOINT}  > /tmp/status.json;  do 
242-     session_id=$( jq -r  " ${JQ_SESSION_ID_QUERY} " ) 
240+     session_id=$( jq -e  " ${JQ_SESSION_ID_QUERY} "   ||   echo   " null " ) 
243241    if  [[ " $session_id " !=  " null" &&  " $session_id " !=  " " &&  " $session_id " !=  " reserved" &&  " $recording_started " =  " false" ;  then 
244242      echo  " $( date -u +" ${ts_format} " ) ${process_name} ] - Session: $session_id  is created" 
245243      return_list=($( bash ${VIDEO_CONFIG_DIRECTORY} /video_graphQLQuery.sh " $session_id " ) 
263261      sleep ${poll_interval} 
264262    elif  [[ " $session_id " !=  " $prev_session_id " &&  " $recording_started " =  " true" ;  then 
265263      stop_recording
266-       wait_for_file_integrity
267264      if  [[ $max_recorded_count  -gt  0 ]] &&  [[ $recorded_count  -ge  $max_recorded_count  ]];  then 
268265        echo  " $( date -u +" ${ts_format} " ) ${process_name} ] - Node will be drained since max sessions reached count number ($max_recorded_count )" 
269266        exit 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments