-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supportcronjob #9
Conversation
@honeyshine75 请帮忙review下?然后我再 feature branch 实验,等到明天2点和5点,看工作是否正常吧。 等完全正常后,在更新 readme。。 |
cron我以前没用过,但代码逻辑看着没问题。 |
让我把启动时间弄成6点,这样每天停4个小时。。。 虽然不够,但是我感觉可以赌一把,因为 If an app has a free web dyno, and that dyno receives no web traffic in a 30-minute period, it will sleep. In addition to the web dyno sleeping, the worker dyno (if present) will also sleep. Free web dynos do not consume free dyno hours while sleeping. |
算了,从北京时间 1:30~6:30 am 吧。 |
先试试手机耗电是否会增加再合入master,Android手机连不上Google可能会耗电增加。 |
然而现实是,cron job 只能在base branch 工作。 Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes. 我一时想不起来,我github 小号的密码了。。 |
增加如下功能
以上功能必须在 auto-start-stop 为true下工作。