Enable real-time progress notifications.

This commit is contained in:
doctorpangloss 2024-04-08 14:56:16 -07:00
parent dd6f7c4215
commit 37cca051b6

View File

@ -25,9 +25,7 @@ def _get_name(queue_name: str, user_id: str) -> str:
class DistributedExecutorToClientProgress(ExecutorToClientProgress):
def __init__(self, rpc: RPC, queue_name: str, loop: AbstractEventLoop, receive_all_progress_notifications=False):
if receive_all_progress_notifications:
raise NotImplementedError("this release does not yet support sending all progress notifications from the hook over the network")
def __init__(self, rpc: RPC, queue_name: str, loop: AbstractEventLoop, receive_all_progress_notifications=True):
self._rpc = rpc
self._queue_name = queue_name
self._loop = loop