Skip to content

Commit d51b57a

Browse files
committed
Clean up: Remove unused MicroVm.stdoud_task and stderr_task
1 parent 02fe3aa commit d51b57a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/aleph/vm/hypervisors/firecracker/microvm.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import shutil
77
import string
88
import traceback
9-
from asyncio import Task
109
from asyncio.base_events import Server
1110
from dataclasses import dataclass
1211
from os import getuid
@@ -84,8 +83,6 @@ class MicroVM:
8483
firecracker_bin_path: Path
8584
jailer_bin_path: Path | None
8685
proc: asyncio.subprocess.Process | None = None
87-
stdout_task: Task | None = None
88-
stderr_task: Task | None = None
8986
config_file_path: Path | None = None
9087
drives: list[Drive]
9188
init_timeout: float
@@ -477,10 +474,6 @@ async def teardown(self):
477474
await asyncio.sleep(1)
478475
await self.stop()
479476

480-
if self.stdout_task:
481-
self.stdout_task.cancel()
482-
if self.stderr_task:
483-
self.stderr_task.cancel()
484477

485478
if (
486479
self.journal_stdout

0 commit comments

Comments
 (0)