print('Found total of', len(failedsubs), 'failed Submissions') if opt.rerun: from process_submissions import try_dosub, try_dojob if opt.threads is not None: mp = multiproc(opt.threads) args = [] for j in failedjobs: if j is None: continue args.append(j.id) #, j.user_image)) mp.map(bounce_try_dojob, args) else: for sub in failedsubs: print('Re-trying sub', sub.id) try_dosub(sub, 1) if opt.sub: sub = Submission.objects.all().get(id=opt.sub) print('Submission', sub) if sub.disk_file is None: print(' no disk file') else: print('Path', sub.disk_file.get_path()) print('Is fits image:', sub.disk_file.is_fits_image()) print('Is fits image:', sub.disk_file.file_type) uis = sub.user_images.all() print('UserImages:', len(uis)) for ui in uis: print(' ', ui) print(' with Jobs:', len(ui.jobs.all()))
print('Found total of', len(failedsubs), 'failed Submissions') if opt.rerun: from process_submissions import try_dosub, try_dojob if opt.threads is not None: mp = multiproc(opt.threads) args = [] for j in failedjobs: if j is None: continue args.append(j.id) #, j.user_image)) mp.map(bounce_try_dojob, args) else: for sub in failedsubs: print('Re-trying sub', sub.id) try_dosub(sub, 1) if opt.sub: sub = Submission.objects.all().get(id=opt.sub) print('Submission', sub) if sub.disk_file is None: print(' no disk file') else: print('Path', sub.disk_file.get_path()) print('Is fits image:', sub.disk_file.is_fits_image()) print('Is fits image:', sub.disk_file.file_type) uis = sub.user_images.all() print('UserImages:', len(uis)) for ui in uis: print(' ', ui)