Skip to content

Commit b8767ae

Browse files
authored
Merge pull request #284 from cta-observatory/check-closer
Change "&" by "and" in the while checking the status of autocloser jobs
2 parents 501ada5 + f5e2512 commit b8767ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/osa/scripts/closer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def post_process(seq_tuple):
193193
# before creating the NightFinished.txt file
194194
n_max = 6
195195
n = 0
196-
while not all_closer_jobs_finished_correctly() & n <= n_max:
196+
while not all_closer_jobs_finished_correctly() and n <= n_max:
197197
log.info(
198198
"All jobs launched by autocloser did not finished correctly yet. "
199199
"Checking again in 10 minutes..."
@@ -202,7 +202,7 @@ def post_process(seq_tuple):
202202
n += 1
203203

204204
if n > n_max:
205-
send_warning_mail(date=options.date)
205+
send_warning_mail(date=date_to_iso(options.date))
206206
return False
207207

208208
if options.seqtoclose is None:

0 commit comments

Comments
 (0)