-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为什么脚本时间会限制最长一天? #1950
Comments
告警自愈的场景是短周期任务。你要传文件,用p2p之类的工具更合适 |
如果更改代码现在后编译运行,长时间运行对categraf没有关系吧? |
需要实测 |
在更改文件 models/task_tpl.go 中 函数Verify和CleanFields
编译后运行,创建脚本是可以设置超时超过1天的时间,但是在使用脚本执行任务或直接创建任务时还是会弹出提示 |
有报错信息了,搜代码就行了。全局搜,这个应该会吧,加油
秦晓辉
***@***.***
快猫星云
联合创始人
18612185520
…------------------ 原始邮件 ------------------
发件人: 赵尚 ***@***.***>
发送时间: 2024年5月14日 17:14
收件人: ccfos/nightingale ***@***.***>
抄送: ulricqin ***@***.***>, Comment ***@***.***>
主题: Re: [ccfos/nightingale] 为什么脚本时间会限制最长一天? (Issue #1950)
在更改文件 models/task_tpl.go 中 函数Verify和CleanFields
判断时间改为
if t.Timeout > 36000*24 { return errors.New("arg(timeout) longer than one day") }
编译后运行,创建脚本是可以设置超时超过1天的时间,但是在使用脚本执行任务或直接创建任务时还是会弹出提示 arg(timeout) longer than one day
请问这种情况还应该更改哪些地方?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
你可以修改“arg(timeout) longer than one day” 为 “arg(timeout) longer than one day 2222” 看看报错里是否出来这个 2222,如果没有,那就是改的地方不对。 所有代码在两个仓库: |
修改ibex超时后可以,运行任务可以超过1天的时间 |
可以 |
ok |
What would you like to be added:
为什么脚本时间会限制最长一天?
某些任务需要传输大文件,最大5天的时间
在创建任务时会提示不能超过1天的超时设置,为什么会有这个限制呢?
Why is this needed:
The text was updated successfully, but these errors were encountered: