Coder Social home page Coder Social logo

Comments (10)

UlricQin avatar UlricQin commented on June 12, 2024

告警自愈的场景是短周期任务。你要传文件,用p2p之类的工具更合适

from nightingale.

rayn316 avatar rayn316 commented on June 12, 2024

如果更改代码现在后编译运行,长时间运行对categraf没有关系吧?
比如过categraf也有运行时间限制之类的

from nightingale.

UlricQin avatar UlricQin commented on June 12, 2024

需要实测

from nightingale.

rayn316 avatar rayn316 commented on June 12, 2024

在更改文件 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
请问这种情况还应该更改哪些地方?

from nightingale.

UlricQin avatar UlricQin commented on June 12, 2024

from nightingale.

rayn316 avatar rayn316 commented on June 12, 2024

就这2个地方,除了这个没改pkg/i18nx/var.go,其他都改了,不行才问的
前端代码和categraf也搜索了,没有这个错误
image

from nightingale.

UlricQin avatar UlricQin commented on June 12, 2024

你可以修改“arg(timeout) longer than one day” 为 “arg(timeout) longer than one day 2222” 看看报错里是否出来这个 2222,如果没有,那就是改的地方不对。

所有代码在两个仓库:ccfos/nightingale flashcatcloud/ibex 如果搜不到,我也帮不了你了

from nightingale.

rayn316 avatar rayn316 commented on June 12, 2024

修改ibex超时后可以,运行任务可以超过1天的时间
我可以将代码合并到这里吗,将超时时间设置为5天限制?

from nightingale.

UlricQin avatar UlricQin commented on June 12, 2024

可以

from nightingale.

rayn316 avatar rayn316 commented on June 12, 2024

ok

from nightingale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.