Fix: Check Before Deleting File in Workflow #336
Labels
feature
New feature or request
hacktoberfest
Included as a part of Hacktoberfest
help wanted
Extra attention is needed
Terms
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:
Impact: This will prevent unnecessary data loss in case of errors during the extraction phase.
Contribution
No response
The text was updated successfully, but these errors were encountered: