Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WorldBank Datasets Refresh #1151

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

prajapata
Copy link

download and process script modified and unit test script added

@HarishC727
Copy link
Contributor

/gcbrun

@krishnaswamypradeep
Copy link

/gcbrun

@prajapata prajapata marked this pull request as ready for review December 18, 2024 10:06
@prajapata
Copy link
Author

/gcbrun

with multiprocessing.Pool(POOL_SIZE) as pool:
pool.starmap(download, zip(download_urls))

logging.info('# files downloaded: %s', len(download_urls))
except Exception as e:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this exception be ignored at runtime? If it creates incomplete downloads, consider implementing logging.fatal.

@@ -152,20 +162,28 @@ def download(url):
if os.path.exists(file_path):
logging.info('Already downloaded %s to file %s', url, file_path)
return

print("just checking")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove these print commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants