Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Minor: Print filename when missing in distributed.py #4018

Merged
merged 3 commits into from
Sep 16, 2021
Merged

Conversation

moyapchen
Copy link
Contributor

...when you have a script that potentially includes file operations (ex when opening a manually-passed-in json file to load data for a task), this piece of code will eat the filename if it's missing.

** Testing Steps **
Have hit this empirically a few times over the past few days, lol.

Moya Chen added 2 commits September 14, 2021 20:52
...when you have a script that potentially includes file operations (ex when opening a file to load data for a task), this piece of code will eat the filename if it's missing.
Copy link
Contributor

@stephenroller stephenroller left a comment

Choose a reason for hiding this comment

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

This usually indicates a bad node

# Slurm is not installed
raise RuntimeError('SLURM does not appear to be installed.')
raise RuntimeError(
Copy link
Contributor

Choose a reason for hiding this comment

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

hm maybe we should only try-catch the subprocess.check_output section. That way we won't eat the FileNotFoundError from way down in the stack

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't have enough context to know what that means exactly... seeing as how it's not clear if anyone else has run into this, maybe I'll land this as is for now?

@moyapchen moyapchen merged commit ca9da73 into main Sep 16, 2021
@moyapchen moyapchen deleted the file_not_found branch September 16, 2021 02:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants