Skip to content

Commit

Permalink
modify logging info
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwjn committed Jul 3, 2023
1 parent 6a296b7 commit c635db3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions codalab/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def modify_bundle_data(self, bundle, bundle_uuid, is_dir):
Change the bundle location in the database
ATTENTION: this function will modify codalab
"""

logging.info(f"Modifying bundle info {bundle_uuid} in database")
# add bundle location
self.bundle_manager._model.add_bundle_location(bundle_uuid, self.target_store_uuid)

Expand Down Expand Up @@ -254,14 +254,12 @@ def delete_original_bundle(self, bundle_uuid, bundle_location):

if parse_linked_bundle_url(bundle_location).uses_beam:
# Do not migrate Azure / GCP bundles
logging.info("Skip bundle %s with location %s", bundle_uuid, bundle_location)
continue

bundle_info = migration.get_bundle_info(bundle_uuid, bundle_location)

is_dir = bundle_info['type'] == 'directory'

logging.info("Uploading bundle from %s", bundle_location)
migration.upload_to_azure_blob(bundle_uuid, bundle_location, is_dir)

if args.change_db: # If need to change the database, continue to run
Expand Down

0 comments on commit c635db3

Please sign in to comment.