MCPcopy Create free account
hub / github.com/runhey/OnmyojiAutoScript / cd_exit

Method cd_exit

tasks/Nian/script_task.py:25–32  ·  view source on GitHub ↗
(cd: timedelta=False)

Source from the content-addressed store, hash-verified

23
24 def run(self) -> None:
25 def cd_exit(cd: timedelta=False):
26 logger.warning(f'Nian in CD {cd}')
27 if cd is False:
28 self.set_next_run(task='Nian', success=False, finish=True)
29 raise TaskEnd('Nian')
30 next_run = datetime.now() + cd
31 self.set_next_run(task='Nian', success=False, finish=False, target=next_run)
32 raise TaskEnd('Nian')
33
34 self.ui_get_current_page()
35 self.ui_goto(page_team)

Callers

nothing calls this directly

Calls 2

TaskEndClass · 0.90
set_next_runMethod · 0.80

Tested by

no test coverage detected