Skip to content

Commit

Permalink
update quick
Browse files Browse the repository at this point in the history
  • Loading branch information
mittal-ishaan committed Oct 23, 2023
1 parent 5bf5276 commit 61d4839
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions home/schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
except socket.error:
print, "!!!scheduler already started, DO NOTHING"
else:
scheduler = BackgroundScheduler()
scheduler.add_jobstore(DjangoJobStore(), "default")
scheduler.add_job(__send__rebate__email__, 'cron', hour=23, minute=59, second=0)
register_events(scheduler)
scheduler.start()
print, "scheduler started"
def start():
scheduler = BackgroundScheduler()
scheduler.add_jobstore(DjangoJobStore(), "default")
scheduler.add_job(__send__rebate__email__, 'cron', hour=23, minute=59, second=0)
register_events(scheduler)
scheduler.start()
print, "scheduler started"

0 comments on commit 61d4839

Please sign in to comment.