成功解决schedule.ScheduleValueError: Invalid time format

简介: 成功解决schedule.ScheduleValueError: Invalid time format


目录

解决问题

解决思路

解决方法


 

 

 

 

 

解决问题

schedule.ScheduleValueError: Invalid time format

 

 

 

解决思路

时间表时间表值错误:无效的时间格式

 

 

解决方法

查看at函数

指定作业应该运行的特定时间。

:param time_str:字符串,格式如下:' HH:MM:SS ', ' HH:MM ', ':MM ', ':SS '。考虑到工作的重复频率,格式必须合理;例如,每分钟重复一次的作业不应该以' HH:MM:SS '的形式给出字符串。':MM '和':SS '之间的区别是从所选的时间单位(例如:“every().hour.at(':30')“every().minute.at(':30')”)。

:return:被调用的作业实例

schedule.every().monday.at("9:33").do(run2)

改为

schedule.every().monday.at("09:33").do(run2)


相关文章
|
29天前
|
Kubernetes 容器
Warning FailedScheduling 14m (x12 over 16m) default-scheduler 0/1 nodes are available: 1 node(s
Warning FailedScheduling 14m (x12 over 16m) default-scheduler 0/1 nodes are available: 1 node(s
17 0
|
9月前
|
数据库
This scheduler instance (XXXXX) is still active but was recovered by another
This scheduler instance (XXXXX) is still active but was recovered by another
156 0
|
存储 缓存 Java
Null Nothing Unit|学习笔记
快速学习 Null Nothing Unit。
103 0
Null Nothing Unit|学习笔记
|
Java 调度
Leetcode-Medium 621. Task Scheduler
Leetcode-Medium 621. Task Scheduler
95 0
Leetcode-Medium 621. Task Scheduler
|
数据库
Multiple Server Query Execution报The result set could not be merged..
在SQL Server中使用Multiple Server Query Execution这个功能做数据库维护或脚本发布时非常方便,昨天由于磁盘空间原因,删除清理了大量的软件和组件,结果导致SSMS客户端出了问题,重装过后,使用Multiple Server Query Execution时,出现了...
956 0