Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class OSSRemoteLogIO(LoggingMixin): # noqa: D101

processors = ()

def upload(self, path: os.PathLike | str, ti: RuntimeTI):
def upload(self, path: os.PathLike | str, ti: RuntimeTI | None = None) -> None:
"""Upload the given log path to the remote storage."""
path = Path(path)
if path.is_absolute():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def close(self):

self.handler.flush()

def upload(self, path: os.PathLike | str, ti: RuntimeTI):
def upload(self, path: os.PathLike | str, ti: RuntimeTI | None = None) -> None:
"""Upload the given log path to the remote storage."""
# No batch upload — logs stream in real-time. Flush pending events and clean up.
self.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class S3RemoteLogIO(LoggingMixin): # noqa: D101

processors = ()

def upload(self, path: os.PathLike | str, ti: RuntimeTI):
def upload(self, path: os.PathLike | str, ti: RuntimeTI | None = None) -> None:
"""Upload the given log path to the remote storage."""
path = pathlib.Path(path)
if path.is_absolute():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class HdfsRemoteLogIO(LoggingMixin): # noqa: D101

processors = ()

def upload(self, path: os.PathLike | str, ti: RuntimeTI):
def upload(self, path: os.PathLike | str, ti: RuntimeTI | None = None) -> None:
"""Upload the given log path to the remote storage."""
path = Path(path)
if path.is_absolute():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class GCSRemoteLogIO(LoggingMixin): # noqa: D101

processors = ()

def upload(self, path: os.PathLike | str, ti: RuntimeTI):
def upload(self, path: os.PathLike | str, ti: RuntimeTI | None = None) -> None:
"""Upload the given log path to the remote storage."""
path = Path(path)
if path.is_absolute():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def proc(

return (proc,)

def upload(self, path: os.PathLike | str, ti: RuntimeTI) -> None:
def upload(self, path: os.PathLike | str, ti: RuntimeTI | None = None) -> None:
"""Flush the transport and optionally delete local log files."""
self.transport.flush()
if self.delete_local_copy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class WasbRemoteLogIO(LoggingMixin): # noqa: D101

processors = ()

def upload(self, path: str | os.PathLike, ti: RuntimeTI):
def upload(self, path: str | os.PathLike, ti: RuntimeTI | None = None) -> None:
"""Upload the given log path to the remote storage."""
path = Path(path)
if path.is_absolute():
Expand Down
Loading