-
Notifications
You must be signed in to change notification settings - Fork 87
Description
Terms
- I have searched open and closed feature requests
- I agree to follow Scribe-Data's Code of Conduct
Description
Currently, the workflow deletes the file first and then extracts the data. This approach causes an issue where if an error occurs during data extraction, the previous file is already deleted and no new data is added, resulting in data loss.
Steps to Reproduce:
-
Run the following command:
scribe-data get --lang german -dt nouns -
Carefully observe the workflow:
a. The file is deleted first.
b. Then the data extraction process begins.
c. If any error occurs during the data extraction, no new data is added, and the previous file is already deleted.
Expected Behavior: The system should first verify whether the data extraction process is successful before deleting the file. If the data extraction is error-free, then the file should be deleted.
Proposed Fix:
- Add a checking mechanism before deleting the file.
- Only proceed with file deletion if the data extraction process completes successfully without errors.
Impact: This will prevent unnecessary data loss in case of errors during the extraction phase.
Contribution
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status