Code Monkey home page Code Monkey logo

wakeleancloud's Introduction

这是干嘛的?

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

这个项目基于blogimg/WakeLeanCloud修改而成,和原项目的主要区别在于其是通过发表wakeup评论来唤醒,解决了需要绑定域名的问题。

如何使用

  1. Fork此项目
  2. 添加一个名为GITHUB_TOKEN的Token,并为赋予repoadmin:repo_hookworkflow的权限
  3. 添加名为APPID APPSECRETS的Secrets,内容为自己的LeanCloud的AppID和MasterKey,需要MasterKey的原因是要删除评论,保存在Github的Secrets中不会泄露,因此可以放心使用

详细使用方法见:https://hiram.wang/leancloud-timer-github-actions/

修改时间

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

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

优雅执行

默认fork后是每天早上7点执行。并且每次执行都会push新的记录。当然你可以删掉。

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

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

    这种方式一次设置好就OK了,理论上不会出现问题。

  2. 运行时间为"*/18 0-15 * * *"

    这种代表每天8:00-23点每18分钟执行一次,不依赖LeanCloud的定时函数

wakeleancloud's People

Contributors

gahotx avatar cheny233 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.