import time
from apscheduler.schedulers.blocking import BlockingScheduler
scheduler = BlockingScheduler()


@scheduler.scheduled_job('cron', second='*/5')
def request_update_status():
    print('当前时间===>', time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(
        time.time())))
    print('Doing job')


scheduler.start()

274f3b32be5372ee189357e31d88cff892daaf2f
<mask token>


@scheduler.scheduled_job('cron', second='*/5')
def request_update_status():
    print('当前时间===>', time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(
        time.time())))
    print('Doing job')


<mask token>

<mask token>


@scheduler.scheduled_job('cron', second='*/5')
def request_update_status():
    print('当前时间===>', time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(
        time.time())))
    print('Doing job')


scheduler.start()

<mask token>
scheduler = BlockingScheduler()


@scheduler.scheduled_job('cron', second='*/5')
def request_update_status():
    print('当前时间===>', time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(
        time.time())))
    print('Doing job')


scheduler.start()

import time
from apscheduler.schedulers.blocking import BlockingScheduler
scheduler = BlockingScheduler()


@scheduler.scheduled_job('cron', second='*/5')
def request_update_status():
    print('当前时间===>', time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(
        time.time())))
    print('Doing job')


scheduler.start()
