From a400a5695f7f6f162120aba992c75a0ac1dfc7ed Mon Sep 17 00:00:00 2001 From: zhuofeng <1107893276@qq.com> Date: Fri, 13 Dec 2024 02:05:32 +0000 Subject: [PATCH] =?UTF-8?q?1=E3=80=81mod=E6=96=87=E4=BB=B6=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=202=E3=80=81type=3Dperiod,=20onstart=3Dno=E6=97=B6ras?= =?UTF-8?q?daemon=E9=A6=96=E6=AC=A1=E4=B8=8D=E5=90=AF=E5=8A=A8=EF=BC=8C?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhuofeng <1107893276@qq.com> --- src/syssentry/cron_process.py | 1 + src/syssentry/load_mods.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/syssentry/cron_process.py b/src/syssentry/cron_process.py index bdbe41e..204d4f3 100644 --- a/src/syssentry/cron_process.py +++ b/src/syssentry/cron_process.py @@ -144,6 +144,7 @@ def period_tasks_handle(): if not task.onstart: logging.debug("period onstart not enabled, task: %s", task.name) + task.runtime_status = EXITED_STATUS continue if task.runtime_status == WAITING_STATUS and \ diff --git a/src/syssentry/load_mods.py b/src/syssentry/load_mods.py index fce3dc8..46fd361 100644 --- a/src/syssentry/load_mods.py +++ b/src/syssentry/load_mods.py @@ -238,6 +238,7 @@ def load_tasks(): return "failed", "" mod_files = os.listdir(TASKS_STORAGE_PATH) + mod_files.sort() for mod_file in mod_files: logging.debug("find mod, path is %s", mod_file) if not mod_file.endswith(MOD_FILE_SUFFIX): -- Gitee