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

allow candidate_generator_function to stop interactive_optimize #2950

Closed
wants to merge 1 commit into from

Conversation

ItsMrLin
Copy link
Contributor

Differential Revision: D64883803

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 24, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64883803

@codecov-commenter
Copy link

codecov-commenter commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.65%. Comparing base (a85c7ee) to head (b61ead8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2950   +/-   ##
=======================================
  Coverage   95.64%   95.65%           
=======================================
  Files         486      486           
  Lines       48871    48881   +10     
=======================================
+ Hits        46745    46755   +10     
  Misses       2126     2126           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Summary:
Allowing `interactive_optimize` to be stopped from the candidate generation function.

When the candidate generator keeps throwing exception, we don't have a good way to stop the loop and the method may hang at `candidate_queue.get()`. This prevent us from handling failing candidate_generator gracefully even if we wish to.

meta: see how it is being used to fix time-out `test_play_preference_game` in D64883802

Reviewed By: Balandat

Differential Revision: D64883803
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64883803

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 0442f2d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants