Skip to content

Commit

Permalink
Merge branch 'main' of github.com:dstndstn/astrometry.net
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Nov 25, 2022
2 parents c75240c + c71156a commit 7684b68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/process_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ def main(dojob_nthreads, dosub_nthreads, refresh_rate, max_sub_retries,
if subresults != lastsubs:
print('Submissions running:', len(subresults))
lastsubs = subresults
for sid,res in subresults:
for sid,res in subresults[:]:
print(' Submission id', sid, 'ready:', res.ready(), end=' ')
if res.ready():
subresults.remove((sid,res))
Expand All @@ -887,7 +887,7 @@ def main(dojob_nthreads, dosub_nthreads, refresh_rate, max_sub_retries,
print('Jobs running:', len(jobresults))
lastjobs = jobresults
any_jobs_finished = False
for jid,res in jobresults:
for jid,res in jobresults[:]:
print(' Job id', jid, 'ready:', res.ready(), end=' ')
if res.ready():
any_jobs_finished = True
Expand Down Expand Up @@ -991,7 +991,7 @@ def main(dojob_nthreads, dosub_nthreads, refresh_rate, max_sub_retries,
iu = np.random.randint(len(users))
user = users[iu]
print('Selected user', user)
for ui in newuis:
for ui in newuis[:]:
if ui.user == user:
print('Selected ui', ui)
newuis.remove(ui)
Expand Down

0 comments on commit 7684b68

Please sign in to comment.