Skip to content

Commit 2a472b5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5e23ad5 commit 2a472b5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

executorlib/standalone/interactive/communication.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def receive_dict(self) -> dict:
7878
while len(response_lst) == 0:
7979
response_lst = self._poller.poll(self._time_out_ms)
8080
if not self._spawner.poll():
81-
raise ExecutorlibSocketError("SocketInterface crashed during execution.")
81+
raise ExecutorlibSocketError(
82+
"SocketInterface crashed during execution."
83+
)
8284
data = self._socket.recv(zmq.NOBLOCK)
8385
if self._logger is not None:
8486
self._logger.warning(

executorlib/task_scheduler/interactive/blockallocation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ def _execute_multiple_tasks(
257257
while True:
258258
if not interface.status and restart_counter > restart_limit:
259259
interface.status = True # no more restarts
260-
interface_initialization_exception = ExecutorlibSocketError("SocketInterface crashed during execution.")
260+
interface_initialization_exception = ExecutorlibSocketError(
261+
"SocketInterface crashed during execution."
262+
)
261263
elif not interface.status:
262264
interface.bootup()
263265
interface_initialization_exception = _set_init_function(

executorlib/task_scheduler/interactive/onetoone.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,6 @@ def _execute_task_in_thread(
275275
cache_key=cache_key,
276276
error_log_file=error_log_file,
277277
):
278-
future_obj.set_exception(ExecutorlibSocketError("SocketInterface crashed during execution."))
278+
future_obj.set_exception(
279+
ExecutorlibSocketError("SocketInterface crashed during execution.")
280+
)

0 commit comments

Comments
 (0)