diff --git a/src/syssentry/cron_process.py b/src/syssentry/cron_process.py index bdbe41e1d7f6c8affdd92dbd06f3cabae06db5c7..204d4f35cceb007222c1a8ce53f30dd8baf885da 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 fce3dc813f75532343adce6860c62f2a70cc3d0f..46fd36167e8b5cdcc58573d95067625120d682b2 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):