Skip to content

Commit

Permalink
Log files to check what we are dealing with. Probably too many files …
Browse files Browse the repository at this point in the history
…get uploaded too often. #940
  • Loading branch information
EmileSonneveld committed Nov 21, 2024
1 parent 7070db8 commit 4db115a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openeogeotrellis/deploy/batch_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,9 @@ def write_metadata(metadata, metadata_file, job_dir: Path):
bucket = os.environ.get('SWIFT_BUCKET')
s3_instance = s3_client()

logger.info("Writing results to object storage")
for file_path in filter(lambda x: x.is_file(), job_dir.rglob("*")):
paths = list(filter(lambda x: x.is_file(), job_dir.rglob("*")))
logger.info(f"Writing results to object storage. paths={paths}")
for file_path in paths:
# TODO: Get list of files to upload from metadata file.
# AFAIK, nothing else is created locally and needs to be uploaded to s3 afterwards.
if UDF_PYTHON_DEPENDENCIES_FOLDER_NAME in str(file_path):
Expand Down

0 comments on commit 4db115a

Please sign in to comment.