mirror of
https://github.com/wassname/ray.git
synced 2026-08-05 13:21:03 +08:00
[Streaming] Streaming Cross-Lang API (#7464)
This commit is contained in:
@@ -32,7 +32,9 @@ def test_simple_word_count():
|
||||
|
||||
def sink_func(x):
|
||||
with open(sink_file, "a") as f:
|
||||
f.write("{}:{},".format(x[0], x[1]))
|
||||
line = "{}:{},".format(x[0], x[1])
|
||||
print("sink_func", line)
|
||||
f.write(line)
|
||||
|
||||
ctx.from_values("a", "b", "c") \
|
||||
.set_parallelism(1) \
|
||||
|
||||
Reference in New Issue
Block a user