|
|
@@ -308,7 +308,6 @@ class Script:
|
|
|
|
|
|
if task.next_run > datetime.now():
|
|
|
logger.info(f'Wait until {task.next_run} for task `{task.command}`')
|
|
|
- # self.is_first_task = False
|
|
|
method = self.config.script.optimization.when_task_queue_empty
|
|
|
if method == 'close_game':
|
|
|
logger.info('Close game during wait')
|
|
|
@@ -437,6 +436,8 @@ class Script:
|
|
|
continue
|
|
|
|
|
|
# Run
|
|
|
+ if self.state_queue:
|
|
|
+ self.state_queue.put({"schedule": self.config.get_schedule_data()})
|
|
|
logger.info(f'Scheduler: Start task `{task}`')
|
|
|
self.device.stuck_record_clear()
|
|
|
self.device.click_record_clear()
|