From 88c2e5d160124b8b3f195b61d897b728c6374b57 Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 2 Dec 2022 18:07:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README-en.md | 9 +++++++-- README.md | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README-en.md b/README-en.md index 5161194c..72e026d3 100644 --- a/README-en.md +++ b/README-en.md @@ -41,7 +41,7 @@ Timed task management panel with python3, javaScript, shell, typescript support ### Local Deployment ```bash -# To be completed +# To be refined, see the development steps first (not supported on windows yet) ``` ### Podman Deployment @@ -160,7 +160,11 @@ task now # the foreground does not generate the day, directly recorded in the log file, and can be specified account execution task conc (Optional) # Specify the account to execute and run immediately regardless of whether a random delay is set -task desi +task desi +# Set task timeout +task -m +# Print task log in real time, no need to carry this parameter when creating timed tasks +task -l ``` 2. parameter description @@ -175,6 +179,7 @@ task desi * file_path: File path for task execution * env_name: The name of the environment variable that needs to be concurrent or specified at the time of task execution * account_number: Specify the account number of an environment variable to be executed when the task is executed +* max_time: Timeout, suffix "s" for seconds (default), "m" for minutes, "h" for hours, "d" for days ## Links diff --git a/README.md b/README.md index 80ea9dd3..7305627c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ ### 本机部署 ```bash -# 待完善,可先参考开发步骤 +# 待完善,可先参考开发步骤 (windows暂时不支持) ``` ### podman 部署 @@ -159,7 +159,11 @@ task now # 并发执行,无论是否设置了随机延迟,均立即运行,前台不产生日,直接记录在日志文件中,且可指定账号执行 task conc (可选的) # 指定账号执行,无论是否设置了随机延迟,均立即运行 -task desi +task desi +# 设置任务超时时间 +task -m +# 实时打印任务日志,创建定时任务时,不用携带此参数 +task -l ``` 2. 参数说明 @@ -175,6 +179,7 @@ task desi * file_path: 任务执行时的文件路径 * env_name: 任务执行时需要并发或者指定时的环境变量名称 * account_number: 任务执行时指定某个环境变量需要执行的账号序号 +* max_time: 超时时间,后缀"s"代表秒(默认值), "m"代表分, "h"代表小时, "d"代表天 ## 链接