From 1dbad7db65b15cfac0ec3d47bc2d8a58b992b73f Mon Sep 17 00:00:00 2001 From: Maria Lainez <98marialainez@gmail.com> Date: Fri, 8 Mar 2024 08:31:25 +0100 Subject: [PATCH 1/2] Change & by and in the while checking the status of closer jobs --- src/osa/scripts/closer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osa/scripts/closer.py b/src/osa/scripts/closer.py index f48b4ef5..d248e9f3 100644 --- a/src/osa/scripts/closer.py +++ b/src/osa/scripts/closer.py @@ -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..." From f5e2512da26dae7276368447ffc28b40ee639538 Mon Sep 17 00:00:00 2001 From: Maria Lainez <98marialainez@gmail.com> Date: Fri, 8 Mar 2024 08:39:07 +0100 Subject: [PATCH 2/2] Write date in string format to send the email --- src/osa/scripts/closer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osa/scripts/closer.py b/src/osa/scripts/closer.py index d248e9f3..cd58bbaf 100644 --- a/src/osa/scripts/closer.py +++ b/src/osa/scripts/closer.py @@ -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: