def init_scheduler(self):
        schedule_store = RAMJobStore()

        job_second = self.scheduler.add_interval_job(self.do_step, 0, 0, 0, 0, 2)

        schedule_store.add_job(job_second)

        self.scheduler.add_jobstore(schedule_store, 'Simulator scheduler', quiet = False)
Exemple #2
0
    def init_scheduler(self):
        schedule_store = RAMJobStore()

        # Write data every 15 seconds.
        job_second = self.scheduler.add_interval_job(self.do_step, 0, 0, 0, 0, 15)

        schedule_store.add_job(job_second)

        self.scheduler.add_jobstore(schedule_store, "Simulator scheduler", quiet=False)