Skip to content
New issue

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

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

Already on GitHub? # to your account

Support context mananger in commit scheduler #2670

Merged
merged 1 commit into from
Nov 23, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 21, 2024

I realized that having a context manager for the CommitScheduler makes a lot of sense while reviewing AnswerDotAI/fastdata#9. It's a quick win, so let's do it. Benefit is to guarantee everything is committed correctly.

cc @AndreaFrancis the solution implemented in the PR is still correct, no need to change anything. This PR is more for convenience next time we want to integrate it.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense indeed! thanks @Wauplin

@Wauplin Wauplin merged commit 4e90bf3 into main Nov 23, 2024
17 checks passed
@Wauplin Wauplin deleted the add-context-manager-for-commit-scheduler branch November 23, 2024 08:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants