Skip to content
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

腾讯云函数设置问题 #17

Open
tommynanny opened this issue Jan 24, 2022 · 3 comments
Open

腾讯云函数设置问题 #17

tommynanny opened this issue Jan 24, 2022 · 3 comments

Comments

@tommynanny
Copy link

想请问一下,我现在用的腾讯云函数,CHECK_RESIN_SECS这个参数该怎么理解呢,是不是自从函数开始运行开始每隔x秒去检测树脂。但是腾讯云函数执行超时时间最多900秒,那900秒之后这个检测就被终止了,该怎么解决呢? 我想签到的时候ONEPUSH一次信息,然后树脂达到数量ONEPUSH一次信息。

@Xm798
Copy link

Xm798 commented Feb 23, 2022

在腾讯云云函数设置触发器。云函数环境下这个参数没用。

@tanxiaofx
Copy link

在腾讯云云函数设置触发器。云函数环境下这个参数没用。

正解

@aceiceya
Copy link

aceiceya commented Aug 20, 2022

1.云函数设置触发器
2.云函数需要注意一下服务器的时区问题,可修改genshincheckinhelper/main.py中的datetime.datetime.now()方法,改为datetime.datetime.now().astimezone(datetime.timezone(datetime.timedelta(hours=8)))
3.最好把genshincheckinhelper/main.py 中run_once()方法里的job1()注释掉,然后单独部署一个注释掉job1()的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants