From b45d4895509b85752e62bf97267813f7cc77fec4 Mon Sep 17 00:00:00 2001 From: rabbitali Date: Tue, 24 Oct 2023 21:15:46 +0800 Subject: [PATCH] update timed task args check and timeout --- vulcanus/conf/constant.py | 2 +- vulcanus/timed.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vulcanus/conf/constant.py b/vulcanus/conf/constant.py index ef2dbe3..427d949 100644 --- a/vulcanus/conf/constant.py +++ b/vulcanus/conf/constant.py @@ -29,4 +29,4 @@ PRIVATE_INDIVIDUATION_CONFIG = os.path.join(BASE_CONFIG_PATH, ".aops-private-con REFRESH_TOKEN_EXP = 1440 -TIMEOUT = 600 +TIMEOUT = 900 diff --git a/vulcanus/timed.py b/vulcanus/timed.py index 52874cb..7d31bee 100644 --- a/vulcanus/timed.py +++ b/vulcanus/timed.py @@ -94,7 +94,7 @@ class TimedTask: LOGGER.error("Wrong trigger parameter for timed tasks : %s.", trigger) return False - if "day_of_week" not in timed or "hour" not in timed: + if "day_of_week" not in timed or "hour" not in timed or "minutes" not in timed: LOGGER.error("Missing required fields when creating scheduled task.") return False -- 2.33.0