Skip to content

Commit

Permalink
Set bool on proto that we want all logs
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Jul 12, 2024
1 parent bfc10f5 commit 71e429a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modal/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,9 @@ def run_inside(self):
async def logs(self) -> AsyncGenerator[str, None]:
last_entry_id: Optional[str] = None

request = api_pb2.ImageJoinStreamingRequest(image_id=self._object_id, timeout=55, last_entry_id=last_entry_id)
request = api_pb2.ImageJoinStreamingRequest(
image_id=self._object_id, timeout=55, last_entry_id=last_entry_id, include_logs_for_finished=True
)
async for response in unary_stream(self._client.stub.ImageJoinStreaming, request):
if response.result.status:
return
Expand Down
1 change: 1 addition & 0 deletions modal_proto/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,7 @@ message ImageJoinStreamingRequest {
string image_id = 1;
float timeout = 2;
string last_entry_id = 3;
bool include_logs_for_finished = 4;
}

message ImageJoinStreamingResponse {
Expand Down

0 comments on commit 71e429a

Please sign in to comment.