Skip to content

Instantly share code, notes, and snippets.

@Kakarot-2000
Created May 8, 2021 03:23
Show Gist options
  • Save Kakarot-2000/72f483a9f2a9d209856fcca4f3de7b9a to your computer and use it in GitHub Desktop.
Save Kakarot-2000/72f483a9f2a9d209856fcca4f3de7b9a to your computer and use it in GitHub Desktop.
from apscheduler.schedulers.blocking import BlockingScheduler
from run import sendMail
sched = BlockingScheduler()
@sched.scheduled_job('interval', minutes=1)
def timed_job():
print('This job is run every one minute.')
sendMail()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment