Skip to content

Conversation

@mschwoer
Copy link
Collaborator

Add a fail_fast option (hand for benchmarking and debugging)

@mschwoer mschwoer requested review from GeorgWa and Copilot January 27, 2026 12:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a fail_fast configuration option to AlphaDIA that controls error handling behavior during file processing. When enabled, the system will immediately stop execution upon encountering an error instead of logging it and continuing with remaining files.

Changes:

  • Added fail_fast configuration option to control whether processing stops immediately on errors
  • Updated error handling logic to raise exceptions immediately when fail_fast is enabled
  • Added documentation explaining the new error handling behavior and usage

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
alphadia/constants/default.yaml Added fail_fast configuration parameter with default value of False
alphadia/search_step.py Implemented fail-fast logic to raise exceptions immediately when enabled
docs/methods/command-line.md Added documentation section explaining error handling behavior and the new option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# if null, no specific setting of random states is performed
random_state: null

# if true, exit immediately in case a file raises an error. If set to False, errors will be logged but the processing of other files will continue.
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

Corrected 'hand' to 'handy' in the PR description, but the comment here uses 'if set to False' which should be 'If set to false' for consistency with the lowercase boolean value format used in YAML.

Suggested change
# if true, exit immediately in case a file raises an error. If set to False, errors will be logged but the processing of other files will continue.
# if true, exit immediately in case a file raises an error. If set to false, errors will be logged but the processing of other files will continue.

Copilot uses AI. Check for mistakes.
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.

2 participants