Skip to content

Commit

Permalink
perf: job 插件默认超时限制与job 最新版本保持同步 TencentBlueKing#7551
Browse files Browse the repository at this point in the history
  • Loading branch information
lTimej committed Sep 11, 2024
1 parent 2400987 commit ce0c93c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,5 @@ class JobFastExecuteScriptComponent(Component):
"插件版本V1.2新增滚动执行,ip tag分组默认为开。\n"
"注:插件版本v1.1中跨业务执行脚本时需要在作业平台添加白名单。\n"
"注:插件版本v1.2中滚动执行要求作业平台版本>=V3.6.0.0。\n"
"注:插件版本v1.2中超时限制[1, 259200]要求作业平台版本>=V3.7.5。\n"
)
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ job_start
type: "input",
attrs: {
name: gettext("超时时间"),
placeholder: gettext("单位为秒(1 - 86400),为空时使用 JOB 默认值"),
placeholder: gettext("单位为秒(1 - 259200),为空时使用 JOB 默认值"),
hookable: true,
validation: [
{
Expand All @@ -678,9 +678,9 @@ job_start
result.result = false;
result.error_message = gettext("超时时间必须为整数")
}
if (+value < 1 || +value > 86400) {
if (+value < 1 || +value > 259200) {
result.result = false;
result.error_message = gettext("超时时间必须在 1 - 86400 范围内")
result.error_message = gettext("超时时间必须在 1 - 259200 范围内")
}
return result
}
Expand Down

0 comments on commit ce0c93c

Please sign in to comment.