Git Product home page Git Product logo

wakeleancloud's Introduction

这是干嘛的?

这个项目主要是用来解决LeanCloud通过定时任务唤醒机器时被流控的问题。

如何使用

  1. Fork此项目
  2. 添加一个名为GITHUB_TOKEN的Token,并为赋予repoadmin:repo_hookworkflow的权限
  3. 添加名为SITE的Secrets,内容为自己管理后台地址。多个请用英文逗号分隔

详细教程请参考优雅解决LeanCloud流控问题

修改时间

修改时间直接修改/.github/workflows/autoWakeup.yml文件的cron表达式即可。

时间是UTC时间,注意时差问题

优雅执行

默认fork后是每天8点到晚上11:59执行的。并且每次执行都会push新的记录。当然你可以删掉。

这里提供两种运行思路,请各位博主自行决定如何运行。

  1. 不改动(默认情况下)

    这种方式一次设置好就OK了,理论上不会出现问题。但是由于每次都会commit新记录,因此可能会很烦。

  2. 运行时间为"0 0 * * *"

    这种代表每天8:00执行一次,然后通过LeanCloud的定时函数。这种方法**很简单:既然自唤醒函数不能唤醒休眠的机器,那么就用脚本从外部唤醒,然后用定时任务在内部唤醒。

wakeleancloud's People

Contributors

roc136 avatar cheny233 avatar

Stargazers

 avatar

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.