Skip to content

Commit

Permalink
Update snowfakery.py to fix SFDO-Tooling#3859
Browse files Browse the repository at this point in the history
  • Loading branch information
schenkkp committed Dec 22, 2024
1 parent 5b9d7b3 commit 38d6611
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cumulusci/tasks/bulkdata/snowfakery.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import shutil
import time
import typing as T
Expand Down Expand Up @@ -583,8 +584,10 @@ def _generate_and_load_initial_batch(self, working_directory: Path):
self.sets_finished_while_generating_template = num_records

new_template_dir = data_loader_new_directory_name(template_dir, self.run_until)
shutil.move(template_dir, new_template_dir)
template_dir = new_template_dir
# don't rename path if new_template_dir matches template_dir
if os.path.abspath(template_dir) != os.path.abspath(new_template_dir):
shutil.move(template_dir, new_template_dir)
template_dir = new_template_dir

# don't send data tables to child processes. All they
# care about are ID->OID mappings
Expand Down

0 comments on commit 38d6611

Please sign in to comment.