Skip to content

Commit

Permalink
Merge pull request #284 from cta-observatory/check-closer
Browse files Browse the repository at this point in the history
Change "&" by "and" in the while checking the status of autocloser jobs
  • Loading branch information
marialainez authored Mar 8, 2024
2 parents 501ada5 + f5e2512 commit b8767ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osa/scripts/closer.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def post_process(seq_tuple):
# before creating the NightFinished.txt file
n_max = 6
n = 0
while not all_closer_jobs_finished_correctly() & n <= n_max:
while not all_closer_jobs_finished_correctly() and n <= n_max:
log.info(
"All jobs launched by autocloser did not finished correctly yet. "
"Checking again in 10 minutes..."
Expand All @@ -202,7 +202,7 @@ def post_process(seq_tuple):
n += 1

if n > n_max:
send_warning_mail(date=options.date)
send_warning_mail(date=date_to_iso(options.date))
return False

if options.seqtoclose is None:
Expand Down

0 comments on commit b8767ae

Please sign in to comment.