-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add get_engine and deprecate engine_from_environment #3151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
timeout: Optional[int] = None, | ||
context: Optional[EngineContext] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is technically a breaking change :) any reason for the re-ordering?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users should not be using context
directly, so moving it down helps reenforce this (also updated doc string to say this). And yeah this is technically breaking, but hopefully people aren't using context.
Automerge cancelled: A status check is failing. |
Automerge cancelled: A status check is failing. |
Automerge cancelled: A status check is failing. |
Automerge cancelled: A status check is failing. |
quantumlib#2767 introduced `get_engine_sampler`. This adds `get_engine` via a similar pattern, and in particular uses the same shared environment variable for projects, GOOGLE_PROJECT_ID. Also * deprecates `engine_from_environment` which used a different environment variable and a different nomenclature. It also fixes a bug in this methods id. * corrects a typo in the doc of `get_engine_sampler` * Gives the a sensible small string for an Engine object.
#2767 introduced
get_engine_sampler
. This addsget_engine
via a similar pattern, and in particular uses the same shared environment variable for projects, GOOGLE_PROJECT_ID.Also
engine_from_environment
which used a different environment variable and a different nomenclature. It also fixes a bug in this methods id.get_engine_sampler