From 1f8f35476a3e6f51f4a04ace632649c66a48500b Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 30 Apr 2023 20:02:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=BB=BB=E5=8A=A1=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/config.sample.sh | 13 ++----------- shell/share.sh | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/sample/config.sample.sh b/sample/config.sample.sh index c9a2e776..c5e4ab17 100644 --- a/sample/config.sample.sh +++ b/sample/config.sample.sh @@ -1,9 +1,3 @@ -## Version: v2.8.0 -## Date: 2021-06-20 -## Update Content: 可持续发展纲要\n1. session管理破坏性修改\n2. 配置管理可编辑config下文件\n3. 自定义脚本改为查看脚本\n4. 移除互助相关 - -## 上面版本号中,如果第2位数字有变化,那么代表增加了新的参数,如果只有第3位数字有变化,仅代表更新了注释,没有增加新的参数,可更新可不更新 - ## 在运行 ql repo 命令时,是否自动删除失效的脚本与定时任务 AutoDelCron="true" @@ -24,11 +18,8 @@ CpuWarn=80 MemoryWarn=80 DiskWarn=90 -## 设置定时任务执行的超时时间,默认1h,后缀"s"代表秒(默认值), "m"代表分, "h"代表小时, "d"代表天 -CommandTimeoutTime="1h" - -## 设置批量执行任务时的并发数,默认同时执行5个任务 -MaxConcurrentNum="5" +## 设置定时任务执行的超时时间,例如1h,后缀"s"代表秒(默认值), "m"代表分, "h"代表小时, "d"代表天 +CommandTimeoutTime="" ## 在运行 task 命令时,随机延迟启动任务的最大延迟时间 ## 默认给javascript任务加随机延迟,如 RandomDelay="300" ,表示任务将在 1-300 秒内随机延迟一个秒数,然后再运行,取消延迟赋值为空 diff --git a/shell/share.sh b/shell/share.sh index 0b10a737..fde34a84 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -68,7 +68,7 @@ import_config() { [[ -f $file_env ]] && . $file_env ql_base_url=${QlBaseUrl:-""} - command_timeout_time=${CommandTimeoutTime:-"1h"} + command_timeout_time=${CommandTimeoutTime:-""} proxy_url=${ProxyUrl:-""} file_extensions=${RepoFileExtensions:-"js py"} current_branch=${QL_BRANCH}