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

add checkpoint recovery feature #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

whyXVI
Copy link

@whyXVI whyXVI commented Aug 2, 2024

  • Added checkpoint saving functionality to ensure progress is saved during processing.
  • Implemented _save_checkpoint method to save current progress after processing each conversation.
  • Implemented _load_checkpoint method to check and load checkpoint data on program startup.
  • Modified _process method to resume processing from the last saved checkpoint.
  • Ensured checkpoint file is deleted upon completion to avoid redundant processing.

This change enhances the reliability and fault tolerance of the program, particularly for long-running tasks and in bad network environments.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Added checkpoint saving functionality to ensure progress is saved during processing.
- Implemented _save_checkpoint method to save current progress after processing each conversation.
- Implemented _load_checkpoint method to check and load checkpoint data on program startup.
- Modified _process method to resume processing from the last saved checkpoint.
- Ensured checkpoint file is deleted upon completion to avoid redundant processing.

This change enhances the reliability and fault tolerance of the program, particularly for long-running tasks and in bad network environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant