成功解决schedule.ScheduleValueError: Invalid time format
invalid 解决 成功 Time format Schedule
2023-09-14 09:04:50 时间
成功解决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)
相关文章
- 【python】错误SyntaxError: invalid syntax的解决方法总结
- ORA-00988: missing or invalid password(s)
- python 导入数据错误:UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb5 in position 0: invalid start
- [解决]Invalid configuration `aarch64-linux’: machine `aarch64′ not recognize「建议收藏」
- HTTPS调试中自签名证书错误ERR_CERT_COMMON_NAME_INVALID的解决方法
- ORA-22296: invalid ALTER TABLE option for conversion of LONG datatype to LOB ORACLE 报错 故障修复 远程处理
- ORA-22929: invalid or missing directory name ORACLE 报错 故障修复 远程处理
- ORA-30968: invalid XPATH or NAMESPACE option for XML Index ORACLE 报错 故障修复 远程处理
- ORA-38492: invalid ALTER INDEX parameters clause “string” ORACLE 报错 故障修复 远程处理
- ORA-42005: invalid type of redefinition method ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-010589; Symbol: ER_RPL_SLAVE_QUEUE_EVENT_FAILED_INVALID_CONFIGURATION; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-02230: invalid ALTER CLUSTER option ORACLE 报错 故障修复 远程处理
- ORA-09291: sksachk: invalid device specified for archive destination ORACLE 报错 故障修复 远程处理
- ORA-09930: LUB of two labels is invalid ORACLE 报错 故障修复 远程处理
- ORA-12582: TNS:invalid operation ORACLE 报错 故障修复 远程处理
- ORA-13462: invalid blocking specification ORACLE 报错 故障修复 远程处理
- ORA-16026: parameter string contains an invalid attribute value ORACLE 报错 故障修复 远程处理
- ORA-16134: invalid MANAGED recovery FINISH option ORACLE 报错 故障修复 远程处理
- mysql提示[Warning]Invalid(old?)tableordatabasename问题的解决方法