Skip to content

Commit 4e95031

Browse files
committed
Merge branch 'srothh/worker-class-hierarchy' into srothh/async-task-worker
Adopt class hierarchy changes from worker hierarchy
2 parents a574fea + d0ee617 commit 4e95031

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

sentry_sdk/transport.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,6 @@ def flush(
107107
"""
108108
return None
109109

110-
async def flush_async(
111-
self: Self,
112-
timeout: float,
113-
callback: Optional[Any] = None,
114-
) -> None:
115-
"""
116-
Send out current events within `timeout` seconds. This method needs to be awaited for blocking behavior.
117-
118-
The default implementation is a no-op, since this method may only be relevant to some transports.
119-
Subclasses should override this method if necessary.
120-
"""
121-
return None
122-
123110
def kill(self: Self) -> None:
124111
"""
125112
Forcefully kills the transport.

sentry_sdk/worker.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@ def flush(
4646
"""
4747
return None
4848

49-
async def flush_async(
50-
self, timeout: float, callback: Optional[Callable[[int, float], None]] = None
51-
) -> None:
52-
"""
53-
Flush the worker.
54-
55-
This method can be awaited until the worker has flushed all events or the specified timeout is reached.
56-
Default implementation is a no-op, since this method may only be relevant to some workers.
57-
Subclasses should override this method if necessary.
58-
"""
59-
return None
60-
6149
@abstractmethod
6250
def full(self) -> bool:
6351
pass

0 commit comments

Comments
 (0)