File tree Expand file tree Collapse file tree
executorlib/task_scheduler/file Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import os
22import subprocess
3- from typing import Optional , Union
3+ from typing import Callable , Optional , Union
44
55from pysqa import QueueAdapter
66
@@ -140,15 +140,15 @@ def _pysqa_execute_command(
140140 return out
141141
142142
143- def get_terminate_function (terminate_tasks_on_shutdown : bool ) -> Optional [callable ]:
143+ def get_terminate_function (terminate_tasks_on_shutdown : bool ) -> Optional [Callable ]:
144144 """
145145 Get the appropriate terminate function based on the shutdown configuration.
146146
147147 Args:
148148 terminate_tasks_on_shutdown (bool): Flag indicating whether to terminate tasks on shutdown.
149149
150150 Returns:
151- Optional[callable ]: The terminate function to use, or None if no termination is needed.
151+ Optional[Callable ]: The terminate function to use, or None if no termination is needed.
152152 """
153153 if terminate_tasks_on_shutdown :
154154 return terminate_with_pysqa
You can’t perform that action at this time.
0 commit comments