We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b0d899 commit 58b2a43Copy full SHA for 58b2a43
services/dask-sidecar/tests/unit/test_utils_dask.py
@@ -46,7 +46,17 @@ def test_publish_event(
46
progress=1,
47
task_owner=task_owner,
48
)
49
+
50
+ def handler_some_topic_event(event: tuple) -> None:
51
+ print("received event", event)
52
+ assert isinstance(event, tuple)
53
+ received_task_log_event = TaskProgressEvent.model_validate_json(event[1])
54
+ assert received_task_log_event == event_to_publish
55
56
+ dask_client.subscribe_topic("some_topic", handler_some_topic_event)
57
+ time.sleep(1)
58
dask_client.log_event("some_topic", event_to_publish.model_dump_json())
59
60
# publish_event(dask_pub=dask_pub, event=event_to_publish)
61
62
# NOTE: this tests runs a sync dask client,
0 commit comments