Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated code in docs #404

Closed
skrawcz opened this issue Oct 19, 2024 · 1 comment · Fixed by #405
Closed

Fix deprecated code in docs #404

skrawcz opened this issue Oct 19, 2024 · 1 comment · Fixed by #405
Labels
documentation Improvements or additions to documentation hacktoberfest

Comments

@skrawcz
Copy link
Contributor

skrawcz commented Oct 19, 2024

https://burr.dagworks.io/concepts/tracking/#debugging-via-reloading-prior-state is out dated.

The code is deprecated. It should be something like this instead:

from burr.tracking import LocalTrackingClient

prior_app_id = ... # some value
sequence_id = ... # None or some prior step
partition_key = "SOME_VALUE" # use None if not using a partition key

project_name = "PROEJCT_NAME"
tracker = LocalTrackingClient(project=project_name)
app = (
    ApplicationBuilder()
    .with_graph(base_graph) # your graph
    .initialize_from(
        tracker, # local tracker above
        resume_at_next_action=True, 
        default_state={}, # your default state
        default_entrypoint="SOME_DEFAULT", # your default entry point
        fork_from_app_id=prior_app_id,
        fork_from_sequence_id=sequence_id,
        fork_from_partition_key=partition_key
    )
    .with_tracker(tracker)  # tracking + checkpointing; one line 🪄.
    .build()
)
@danieltayal07
Copy link
Contributor

pulled a request, please check is it ok?

or i have to do something else

Thank you so much for the opportunity!

@skrawcz skrawcz linked a pull request Oct 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants