Skip to content

add fail_fast option#792

Merged
mschwoer merged 2 commits intomainfrom
add_fail_fast_option
Feb 17, 2026
Merged

add fail_fast option#792
mschwoer merged 2 commits intomainfrom
add_fail_fast_option

Conversation

@mschwoer
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread alphadia/constants/default.yaml Outdated
# 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.
Copy link
Copy Markdown
Collaborator

@GeorgWa GeorgWa left a comment

Choose a reason for hiding this comment

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

Looks good!

@mschwoer mschwoer merged commit 21c608c into main Feb 17, 2026
7 checks passed
@mschwoer mschwoer deleted the add_fail_fast_option branch February 17, 2026 21:06
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.

3 participants