看到关于run_time函数有下面的说明:
period有nMilliSecond、nSecond和Day三个周期单元,部分周期下定时器函数在第一次运行之前会先等待一个period
其中部分周期需要先等待一个period
现在的问题,如果想通过run_time功能实现每日16:00定时调度一次,并且启动后当日满足时间即可运行
该如何实现?
下面的代码,实测当天无法执行
def init(ContextInfo):
starttime = today+'16:00:00'
ContextInfo.run_time("schedule_func", "1nDay", starttime)
def schedule_func(ContextInfo):
print("hello")
有什么解决方法吗? |