Skip to content

Commit

Permalink
disable creating empty state file on loadpackage init
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Jan 30, 2024
1 parent 189d24b commit 57ed090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlt/common/storages/load_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def create_package(self, load_id: str) -> None:
self.storage.create_folder(os.path.join(load_id, PackageStorage.FAILED_JOBS_FOLDER))
self.storage.create_folder(os.path.join(load_id, PackageStorage.STARTED_JOBS_FOLDER))
# create new (and empty) state
self.save_load_package_state(load_id, {})
# self.save_load_package_state(load_id, {})

def complete_loading_package(self, load_id: str, load_state: TLoadPackageState) -> str:
"""Completes loading the package by writing marker file with`package_state. Returns path to the completed package"""
Expand Down

0 comments on commit 57ed090

Please sign in to comment.