def _check_all_tasks(tasks):
 running_tasks_data = []
 for task in tasks:
  if task.isAlive():
   running_tasks_data.append(('  %s (started %s)' % (task.name, time.strftime('%H:%M:%S', time.localtime(task.start_time)))))
  if task.exception:
   ALL_ERRORS.append(task.exception)
 if running_tasks_data:
  log('----------------------------------------')
  log('Tasks still running:')
  for task_details in running_tasks_data:
   log(task_details)

def _check_all_tasks ( tasks ) : running_tasks_data = [ ] for task in tasks : if task . isAlive ( ) : running_tasks_data . append ( ( '  %s (started %s)' % ( task . name , time . strftime ( '%H:%M:%S' , time . localtime ( task . start_time ) ) ) ) ) if task . exception : ALL_ERRORS . append ( task . exception ) if running_tasks_data : log ( '----------------------------------------' ) log ( 'Tasks still running:' ) for task_details in running_tasks_data : log ( task_details )
checks the results of all tasks .