apscheduler - python apschedule BlockingScheduler with interval trigger: Start immediately -


i using python apscheduler schedule specific task every 45 minutes. problem is, when add job , start scheduler, starts @ 45 minutes now.

from apscheduler.schedulers.blocking import blockingscheduler  class myclass:      def schedule(self):         self.scheduler = blockingscheduler()         self.scheduler.add_job(self.myjob, 'interval', minutes=45)         self.scheduler.start()      def myjob(self):         print('i started') 

i tried setting start_date, no success. how can make sure job executed immediately, , not after waiting interval first time?

try next_run_time=datetime.now().


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -