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

Retry calls to execute as well as to query #577

Merged
merged 2 commits into from
Feb 13, 2025
Merged

Retry calls to execute as well as to query #577

merged 2 commits into from
Feb 13, 2025

Conversation

msullivan
Copy link
Member

In the distant past, execute was quite different than query (execute
couldn't take arguments and query could not include multiple
commands), so it maybe made sense to have different retry behaviors.

Now, execute and query are basically identical except for whether data
is returned, and so I don't think there is any reason why they
shouldn't both do retries.

(I modeled the implementation after how I did this in the edgedb test
suite's hacked up client: geldata/gel#8249)

@msullivan msullivan requested review from 1st1, elprans and fantix February 13, 2025 18:57
In the distant past, execute was quite different than query (execute
couldn't take arguments and query could not include multiple
commands), so it maybe made sense to have different retry behaviors.

Now, execute and query are basically identical except for whether data
is returned, and so I don't think there is any reason why they
shouldn't both do retries.

(I modeled the implementation after how I did this in the edgedb test
suite's hacked up client: geldata/gel#8249)
Copy link
Member

@fantix fantix left a comment

Choose a reason for hiding this comment

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

LGTM!

@msullivan msullivan merged commit e263f2b into master Feb 13, 2025
62 checks passed
@msullivan msullivan deleted the retry-execute branch February 13, 2025 21:58
msullivan added a commit that referenced this pull request Feb 23, 2025
EdgeDB has been renamed to Gel, and so has this python package.

Changes
=======

* Rename the package to gel! The package still provides an ``edgedb``
  module in addition to ``gel``, but ``gel`` is now preferred.
  (by @msullivan in 83349d4 for #566)

* Allow cloud instance names to contain '-' and '_' in the org part to support vercel instances
  (by @msullivan in 5b5be68 for #1084)

* Support specifying SNI tls_server_name
  (by @msullivan in 6b28b98 for #1088)

* Support GEL_ env vars and gel.toml
  (by @msullivan in d0b3961 for #532)

* Add support for protocol 3.0
  (by @elprans in 2e6a877 for #534)

* Add support for newly exposed Postgres types
  (by @elprans in 48a67c1)

* Kill pre-1.0 forever deprecated API / dead code.
  (by @1st1 in 8669e78)

* Rename main module from edgedb to gel
  (by @msullivan in 10d61a1 for #544)

* Support the gel:// dsn protocol
  (by @msullivan in 84c533c for #546)

* Add a way to export SQLAlchemy models from Gel (EdgeDB).
  (by @vpetrovykh in 645fce0 for #536)

* Implement gel.Record type
  (by @1st1 in ff3aad2 for #560)

* Add ORM model generators for Django, SQLAlchemy, sqlmodel.
  (by @vpetrovykh in ad37a6b)

* Add support for REPEATABLE READ isolation (requires server support)
  (by @elprans in 8f40d0e for #565)

* Retry calls to `execute` as well as to `query`
  (by @msullivan in e263f2b for #577)

* Add support for running (and installing) the main CLI
  (by @elprans in 023697a for #572)

* Rename AI to RAGClient and add compat names
  (by @fantix in e5aae27 for #578)
@msullivan msullivan mentioned this pull request Feb 23, 2025
msullivan added a commit that referenced this pull request Feb 23, 2025
EdgeDB has been renamed to Gel, and so has this python package.

Changes
=======

* Rename the package to gel! The package still provides an ``edgedb``
  module in addition to ``gel``, but ``gel`` is now preferred.
  (by @msullivan in 83349d4 for #566)

* Allow cloud instance names to contain '-' and '_' in the org part to support vercel instances
  (by @msullivan in 5b5be68 for #1084)

* Support specifying SNI tls_server_name
  (by @msullivan in 6b28b98 for #1088)

* Support GEL_ env vars and gel.toml
  (by @msullivan in d0b3961 for #532)

* Add support for protocol 3.0
  (by @elprans in 2e6a877 for #534)

* Add support for newly exposed Postgres types
  (by @elprans in 48a67c1)

* Kill pre-1.0 forever deprecated API / dead code.
  (by @1st1 in 8669e78)

* Rename main module from edgedb to gel
  (by @msullivan in 10d61a1 for #544)

* Support the gel:// dsn protocol
  (by @msullivan in 84c533c for #546)

* Add a way to export SQLAlchemy models from Gel (EdgeDB).
  (by @vpetrovykh in 645fce0 for #536)

* Implement gel.Record type
  (by @1st1 in ff3aad2 for #560)

* Add ORM model generators for Django, SQLAlchemy, sqlmodel.
  (by @vpetrovykh in ad37a6b)

* Add support for REPEATABLE READ isolation (requires server support)
  (by @elprans in 8f40d0e for #565)

* Retry calls to `execute` as well as to `query`
  (by @msullivan in e263f2b for #577)

* Add support for running (and installing) the main CLI
  (by @elprans in 023697a for #572)

* Rename AI to RAGClient and add compat names
  (by @fantix in e5aae27 for #578)
msullivan added a commit that referenced this pull request Feb 23, 2025
EdgeDB has been renamed to Gel, and so has this python package.

Changes
=======

* Rename the package to gel! The package still provides an ``edgedb``
  module in addition to ``gel``, but ``gel`` is now preferred.
  (by @msullivan in 83349d4 for #566)

* Allow cloud instance names to contain '-' and '_' in the org part to support vercel instances
  (by @msullivan in 5b5be68 for #1084)

* Support specifying SNI tls_server_name
  (by @msullivan in 6b28b98 for #1088)

* Support GEL_ env vars and gel.toml
  (by @msullivan in d0b3961 for #532)

* Add support for protocol 3.0
  (by @elprans in 2e6a877 for #534)

* Add support for newly exposed Postgres types
  (by @elprans in 48a67c1)

* Kill pre-1.0 forever deprecated API / dead code.
  (by @1st1 in 8669e78)

* Rename main module from edgedb to gel
  (by @msullivan in 10d61a1 for #544)

* Support the gel:// dsn protocol
  (by @msullivan in 84c533c for #546)

* Add a way to export SQLAlchemy models from Gel (EdgeDB).
  (by @vpetrovykh in 645fce0 for #536)

* Implement gel.Record type
  (by @1st1 in ff3aad2 for #560)

* Add ORM model generators for Django, SQLAlchemy, sqlmodel.
  (by @vpetrovykh in ad37a6b)

* Add support for REPEATABLE READ isolation (requires server support)
  (by @elprans in 8f40d0e for #565)

* Retry calls to `execute` as well as to `query`
  (by @msullivan in e263f2b for #577)

* Add support for running (and installing) the main CLI
  (by @elprans in 023697a for #572)

* Rename AI to RAGClient and add compat names
  (by @fantix in e5aae27 for #578)
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