run.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:pgbadger-rds-cron 作者: CanopyTax 项目源码 文件源码
def run_schedule():
    while True:
        sleep_time = schedule.next_run() - datetime.now()
        print('Next job to run at {}, which is {} from now'
              .format(str(schedule.next_run()), str(sleep_time)))

        # Sleep an extra second to make up for microseconds
        time.sleep(max(1, sleep_time.seconds + 1))
        schedule.run_pending()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号