tensorlakeai / indexify

A realtime serving engine for Data-Intensive Generative AI Applications
https://docs.tensorlake.ai
Apache License 2.0
926 stars 120 forks source link

fix(server,sdk)!: rename rerun to replay_invocations for clarity #1022

Closed seriousben closed 1 week ago

seriousben commented 1 week ago

Context

The current term rerun is confusing especially when compared with the run method.

Example 1:

invocation_id = g.run(block_until_done=True, x=Object(x="a"))

Example 2:

g.rerun()

The code difference between Example 1 and 2 is minimal but the impact on the graph's data is immense. Example 2 will go through all previous runs/invocations and will execute them again but on the latest version of the graph.

What

We are renaming rerun to replay_invocation in the SDK and in the server to remove any possible confusion.

Testing

The test_graph_update.py tests replay.

Contribution Checklist