Update readme

This commit is contained in:
Nuno Campos
2023-10-16 14:08:35 +01:00
parent 837c9c9af2
commit b146b0dd7e
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -15,14 +15,14 @@ grow_value = (
| Pregel.send_to(value=lambda x: x if len(x) < 10 else None)
)
pubsub = Pregel(
app = Pregel(
grow_value,
channels={"value": channels.LastValue[str]()},
input="value",
output="value",
)
assert pubsub.invoke("a") == "aaaaaaaa"
assert app.invoke("a") == "aaaaaaaa"
```
@@ -33,7 +33,7 @@ Check `examples` for more examples.
- [x] Iterate on API
- [x] do we want api to receive output from multiple channels in invoke()
- [x] do we want api to send input to multiple channels in invoke()
- [ ] Finish updating tests to new API
- [x] Finish updating tests to new API
- [ ] Implement input_schema and output_schema in Pregel
- [ ] Implement checkpointing
- [ ] Save checkpoints at end of each step
+2 -2
View File
@@ -6,11 +6,11 @@ grow_value = (
| Pregel.send_to(value=lambda x: x if len(x) < 10 else None)
)
pubsub = Pregel(
app = Pregel(
grow_value,
channels={"value": channels.LastValue[str]()},
input="value",
output="value",
)
assert pubsub.invoke("a") == "aaaaaaaa"
assert app.invoke("a") == "aaaaaaaa"