From 47e8ee00e3c1436dc36b7c1d9f5882a3ba7ca6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Sat, 16 Mar 2024 07:51:08 +0000 Subject: [PATCH] Only update last_pro_check status if the job download pro plugins succeeded --- src/common/core/pro/jobs/download-pro-plugins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/core/pro/jobs/download-pro-plugins.py b/src/common/core/pro/jobs/download-pro-plugins.py index c3c09fd4c..93085596f 100644 --- a/src/common/core/pro/jobs/download-pro-plugins.py +++ b/src/common/core/pro/jobs/download-pro-plugins.py @@ -119,7 +119,6 @@ try: "pro_status": "invalid", "pro_overlapped": False, "pro_services": 0, - "last_pro_check": current_date, } metadata = {} error = False @@ -280,7 +279,9 @@ try: if err: LOGGER.error(f"Couldn't update Pro plugins to database: {err}") + sys_exit(2) + db.set_pro_metadata(metadata | {"last_pro_check": current_date}) status = 1 LOGGER.info("🚀 Pro plugins downloaded and installed successfully!") except SystemExit as e: