Code Monkey home page Code Monkey logo

Comments (2)

gitiray avatar gitiray commented on June 12, 2024 1

很好,正好是我想要的状态!
谢谢告知,可以加进文档里喔😄

from medalhelper.

ThreeCatsLoveFish avatar ThreeCatsLoveFish commented on June 12, 2024

Is your feature request related to a problem? Please describe. 有时(网络中断、设备断线、容器停止等)可能出现cron运行被错过、或运行不完整,为了完成当天的任务,需要手动重新运行。 但因为cron 是写在配置文件里面的,需要注释掉文件里cron的时间,再重启容器。等待重新执行完成后,还需要去掉文件里刚才注释的时间,再重启容器,否则会循环多次执行任务。 整个操作比较繁琐。

当时加这个start就是为了这个情况的发生

medalhelper start

我不太清楚docker是如何传参数进入容器的,但是现在你直接跑上面的命令是会立刻进行一次的,不知道这个是否满足你的需求,你可以尝试一下运行一下

docker run -d \
    -e TZ=Asia/Shanghai \
    -v $(pwd)/users.yaml:/config/users.yaml \
    --restart unless-stopped \
    --name medalhelper \
    medalhelper start

from medalhelper.

Related Issues (19)

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.