Skip to content

Fix: Check Before Deleting File in Workflow #336

@SethiShreya

Description

@SethiShreya

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:

  • 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

Labels

featureNew feature or requesthacktoberfestIncluded as a part of Hacktoberfesthelp wantedExtra attention is needed

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions