Пример #1
0
 def _loadScheduler(self) -> None:
     ver = self.schedVer()
     if ver == 1:
         self.sched = V1Scheduler(self)
     elif ver == 2:
         if os.getenv("TEST_SCHEDULER"):
             self.sched = V2TestScheduler(self)  # type: ignore
         else:
             self.sched = V2Scheduler(self)
Пример #2
0
 def _loadScheduler(self) -> None:
     ver = self.schedVer()
     if ver == 1:
         self.sched = V1Scheduler(self)
     elif ver == 2:
         if self.is_2021_test_scheduler_enabled():
             self.sched = V2TestScheduler(self)  # type: ignore
         else:
             self.sched = V2Scheduler(self)
Пример #3
0
 def _loadScheduler(self) -> None:
     ver = self.schedVer()
     if ver == 1:
         self.sched = V1Scheduler(self)
     elif ver == 2:
         self.sched = V2Scheduler(self)
         if not self.server:
             self.conf["localOffset"] = self.sched._current_timezone_offset()
         elif self.server.minutes_west is not None:
             self.conf["localOffset"] = self.server.minutes_west
Пример #4
0
 def _loadScheduler(self) -> None:
     ver = self.schedVer()
     if ver == 1:
         self.sched = V1Scheduler(self)
     elif ver == 2:
         self.sched = V2Scheduler(self)