Git Product home page Git Product logo

Comments (3)

dengsgo avatar dengsgo commented on May 27, 2024

由于 fileboy 无法预估命令执行的时长,为防止执行中的命令一直阻塞,导致后续的命令任务响应滞后,现在采用的策略是有新任务进来就直接中断之前的任务(而不管它是否还在执行)。
你说的这种情况,可能是你的命令执行的时长比较久,如果不想命令被中断,可以把 filegirl.yaml 配置的中 command delayMillSecond 参数值设的大一些,大于你的命令执行时长。

command:
    # 把这个值设置的大一些,大于你的命令执行时长
    delayMillSecond: 60000

这样的话后续的任务会排队,直到超过这个时长之后才会执行。

from fileboy.

dengsgo avatar dengsgo commented on May 27, 2024

并且希望加入初始化执行命令

如果只是单纯想在 fileboy 启动之前执行一下定义的 command, 你可以手动执行 fileboy exec ,然后再运行 fileboy,或者用&&合并命令 fileboy exec && fileboy
对于不是上面这种情况的场景,暂时还没有支持。之后的版本会考虑加入初始化命令的支持。

from fileboy.

yeyu12 avatar yeyu12 commented on May 27, 2024

因为是监听目录,本身是写php的基于swoole,在开发阶段不是以守护进程的形式开发,所以要在console下面看输出的东西,如果强制中断的话,达不到想要的那个实时重启

from fileboy.

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.