Comments (3)
由于 fileboy
无法预估命令执行的时长,为防止执行中的命令一直阻塞,导致后续的命令任务响应滞后,现在采用的策略是有新任务进来就直接中断之前的任务(而不管它是否还在执行)。
你说的这种情况,可能是你的命令执行的时长比较久,如果不想命令被中断,可以把 filegirl.yaml
配置的中 command delayMillSecond
参数值设的大一些,大于你的命令执行时长。
command:
# 把这个值设置的大一些,大于你的命令执行时长
delayMillSecond: 60000
这样的话后续的任务会排队,直到超过这个时长之后才会执行。
from fileboy.
并且希望加入初始化执行命令
如果只是单纯想在 fileboy
启动之前执行一下定义的 command
, 你可以手动执行 fileboy exec
,然后再运行 fileboy
,或者用&&合并命令 fileboy exec && fileboy
。
对于不是上面这种情况的场景,暂时还没有支持。之后的版本会考虑加入初始化命令的支持。
from fileboy.
因为是监听目录,本身是写php的基于swoole,在开发阶段不是以守护进程的形式开发,所以要在console下面看输出的东西,如果强制中断的话,达不到想要的那个实时重启
from fileboy.
Related Issues (20)
- Gin如何活加载? HOT 1
- 能否支持以守护进程运行? HOT 2
- go get 出现错误 HOT 1
- 权限问题 HOT 2
- Centos 7 no sapce left on device HOT 2
- 变量占位符 {{file}} bug HOT 3
- [建议意见]通知器在命令执行完成后会发送 http 请求 ? HOT 3
- [建议]增加指定配置文件启动 HOT 9
- 文件夹问题 HOT 6
- How can I correctly configure the python command in the filegirl.yaml file HOT 2
- 不能監控 /etc ?
- 监听完一次事件并执行命令后不再监听
- 需要支持程序【根】和【绝对】路径的支持 HOT 1
- In Docker container. fsnotify package error: "fsnotify: queue or buffer overflow. " HOT 2
- 估计是我的配置太奇葩了,,,,囧,试用失败 HOT 3
- 支持优雅的重启吗? HOT 3
- undefined: strings.ReplaceAll HOT 1
- 如果我启动一个简单的服务器,每次修改代码,fileboy好像不会自动停止掉服务器 HOT 4
- command not found: fileboy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fileboy.