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

Temporary filenames in gaia.core not unique in multiprocessing environment #3128

Closed
ndrory opened this issue Nov 8, 2024 · 2 comments
Closed

Comments

@ndrory
Copy link

ndrory commented Nov 8, 2024

We are using astroquery.gaia in a multiprocessing environment and we see failures with temporary output files created jusing now.strftime("%Y%m%d_%H%M%S") fail due to those not being unique.

Please consider either adding precision using now.strftime("%Y%m%d_%H%M%S.%f") or using mkdtemp() to get guaranteed unique directories/files.

See for example https://github.com/astropy/astroquery/blob/main/astroquery/gaia/core.py#L242 and #L248

@cosmoJFH
Copy link
Contributor

cosmoJFH commented Nov 8, 2024

Hi @ndrory, thanks for your feedback, we will look into this issue asap.

@cosmoJFH
Copy link
Contributor

Fixed in PR #3130

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

No branches or pull requests

3 participants