Code Monkey home page Code Monkey logo

Comments (7)

hfcorriez avatar hfcorriez commented on June 25, 2024

之前考虑过这个方式,但没有很好的模式,等确定好就加入进来。

暂时你可以自己做一个脚本来将数据库输出到文件来解决这个问题。

from php-crontab.

hfcorriez avatar hfcorriez commented on June 25, 2024

新的版本已经支持

from php-crontab.

aloasut avatar aloasut commented on June 25, 2024

wow,感谢 :)

from php-crontab.

hfcorriez avatar hfcorriez commented on June 25, 2024

不客气,只是比较简单的实现,要做好还有很多工作。

from php-crontab.

aloasut avatar aloasut commented on June 25, 2024

我来提供下我的做法吧:我做得很粗浅了,一个php后台运行,逢1分钟两分钟等设定的时间就用file_get_contents跑某个程序,在程序中记录开始和结束的时间,开始的时候往数据库写开始的标记,结束的时候写结束的标记。这样一天下来可以看看哪些程序用的时间过长,哪些程序没有执行完成。有些是数据太多了,有些是服务器不能访问了等。不成功的人手处理下。用PHP跑crontab的一般就会对这些东西有兴趣吧?

from php-crontab.

hfcorriez avatar hfcorriez commented on June 25, 2024

明白了,就是数据上报模块。可以方便日后分析或者做什么事情对把。
我最近有时间会写一下,这个确实有必要。

多谢。

from php-crontab.

hfcorriez avatar hfcorriez commented on June 25, 2024

刚提交了一个版本,看看是不是你想要的。

from php-crontab.

Related Issues (8)

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.