Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Oct 22, 2024
1 parent ba97ef5 commit 16ec00b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/isolate/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class RunTask:
future: futures.Future | None = None
agent: RunnerAgent | None = None
logger: IsolateLogger = field(default_factory=IsolateLogger.from_env)
stream_logs: bool = False
stream_logs: bool = True

def cancel(self):
while True:
Expand Down Expand Up @@ -360,9 +360,8 @@ def SetMetadata(

def set_metadata(self, task: RunTask, metadata: definitions.TaskMetadata) -> None:
task.logger.extra_labels = dict(metadata.logger_labels)

if metadata.HasField("stream_logs"):
task.stream_logs = metadata.stream_logs
# Stream_logs defaults to False if not set
task.stream_logs = metadata.stream_logs

def Run(
self,
Expand Down

0 comments on commit 16ec00b

Please sign in to comment.