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

More useful error messages for temporary outputs don't exist #159

Open
meliache opened this issue Dec 9, 2021 · 0 comments
Open

More useful error messages for temporary outputs don't exist #159

meliache opened this issue Dec 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@meliache
Copy link
Collaborator

meliache commented Dec 9, 2021

For tasks which use b2luigi.on_temporary_files, if the run-function fails to produce the temporary outputs, the first error message that the user sees is a FileNotFoundError when b2luigi tries to move the files to the correct location. E.g. someone recently sent me the traceback

FileNotFoundError: [Errno 2] No such file or directory: '/nfs/dust/belle2/user/<user>/XsllDataMoriond/results/b17/git_hash=release-05-02-18/input_files=hashed_da87ca2d321f178adb5683a1f64a9fe7/run_fei=False/feiHadronicBzero=True/feiHadronicBplus=True/Upsilon4SBpmuplus.root-luigi-tmp-0806291073' -> '/nfs/dust/belle2/user/<user>/XsllDataMoriond/results/b17/git_hash=release-05-02-18/input_files=hashed_da87ca2d321f178adb5683a1f64a9fe7/run_fei=False/feiHadronicBzero=True/feiHadronicBplus=True/Upsilon4SBpmuplus.root'

The cause of this is very obvious when you not what b2luigi.on_temporary_files does, but the user that sent the traceback to me was just using Basf2PathTask's not even being aware that they use temporary outputs and was very confused by this error message.

I suggest adding a more helpful message what might cause it and how to possibly fix it.

@meliache meliache added the enhancement New feature or request label Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant