pipe_out=fetch_fork_result_list(pipe_ids) except RuntimeError, e: # expect all errors logged already glideinFrontendLib.log_files.logActivity("Terminating iteration due to errors") return glideinFrontendLib.log_files.logActivity("All children terminated") glidein_dict=pipe_out['entries'] condorq_dict=pipe_out['jobs'] status_dict=pipe_out['startds'] condorq_dict_idle=glideinFrontendLib.getIdleCondorQ(condorq_dict) condorq_dict_old_idle=glideinFrontendLib.getOldCondorQ(condorq_dict_idle,600) condorq_dict_running=glideinFrontendLib.getRunningCondorQ(condorq_dict) condorq_dict_types={'Idle':{'dict':condorq_dict_idle,'abs':glideinFrontendLib.countCondorQ(condorq_dict_idle)}, 'OldIdle':{'dict':condorq_dict_old_idle,'abs':glideinFrontendLib.countCondorQ(condorq_dict_old_idle)}, 'Running':{'dict':condorq_dict_running,'abs':glideinFrontendLib.countCondorQ(condorq_dict_running)}} condorq_dict_abs=glideinFrontendLib.countCondorQ(condorq_dict); stats['group'].logJobs({'Total':condorq_dict_abs, 'Idle':condorq_dict_types['Idle']['abs'], 'OldIdle':condorq_dict_types['OldIdle']['abs'], 'Running':condorq_dict_types['Running']['abs']}) glideinFrontendLib.log_files.logActivity("Jobs found total %i idle %i (old %i) running %i"%(condorq_dict_abs, condorq_dict_types['Idle']['abs'], condorq_dict_types['OldIdle']['abs'], condorq_dict_types['Running']['abs']))