Skip to content
Snippets Groups Projects

Add --ignore-broken-inputs option to keep running HltEfficiencyChecker if encounter a dodgy file

Merged Ross John Hunter requested to merge rjhunter-sidestep-FileInputError into master
3 unresolved threads

FYI @rmatev interested to hear your opinion on this.

As reported awhile ago by @mwhitehe (thanks!), when you run the HltEfficiencyChecker wizard, if you come across a file that cannot be opened for whatever reason, the trigger & tupling will skip it and keep running, making a perfectly valid tuple for analysis. ApplicationMgr will however exit with a not-very-descriptive error code 2, and so our check_call command in wizard.py will throw a CalledProcessError, and HltEfficiencyChecker will stop.

This is not ideal behaviour though:

  • You may consider the tuple you've made to be perfectly valid since the dodgy file was simply skipped,
  • The error code doesn't easily tell you what the problem was - the rest of the log shows the successful completion of a job,
  • Grid sites often go down - since the tupling & trigger will naturally just keep going, why can't HltEfficiencyChecker keep going.

I stop short of enforcing any behaviour, and print a more descriptive message if we encounter this. I added the --ignore-broken-inputs arg so the user can get HltEfficiencyChecker to keep going if that is what they wish.

Edited by Ross John Hunter

Merge request reports

Pipeline #2100362 passed

Pipeline passed for 4759c00c on rjhunter-sidestep-FileInputError

Approved by

Merged by Sebastien PonceSebastien Ponce 4 years ago (Nov 19, 2020 7:10am UTC)

Merge details

  • Changes merged into master with afba5eb7 (commits were squashed).
  • Deleted the source branch.

Pipeline #2106531 passed

Pipeline passed for afba5eb7 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading