Skip to content

Commit

Permalink
fixed localization from requester-pays buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
bw2 committed Apr 26, 2024
1 parent 40d7693 commit fa7ecf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions step_pipeline/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,9 @@ def _generate_gcloud_copy_command(self, source_path, output_dir=None, output_pat
if args.gcloud_project:
gcloud_copy_command += f"--project {args.gcloud_project} "
gcloud_copy_command += "storage cp "
if args.gcloud_project:
gcloud_copy_command += f"--billing-project {args.gcloud_project} "

if output_path:
destination = output_path
elif output_dir:
Expand Down
2 changes: 1 addition & 1 deletion step_pipeline/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
GSUTIL_PATH_TO_FILE_STAT_CACHE = {}
BUCKET_LOCATION_CACHE = {}
_BUCKET_ERROR_COUNTER = collections.defaultdict(int)
_MAX_ERROR_MESSAGES_TO_PRINT_PER_BUCKET = 1000
_MAX_ERROR_MESSAGES_TO_PRINT_PER_BUCKET = 5

LOCAL_TIMEZONE = pytz.timezone("US/Eastern") #datetime.now(timezone.utc).astimezone().tzinfo

Expand Down

0 comments on commit fa7ecf9

Please sign in to comment.