Skip to content

Python: Run auto provisioning in async #3687

Closed as not planned
Closed as not planned

Description

@helderco

The auto provisioning (having the SDK launch the engine session in a subprocess automatically, including downloading the CLI if on in the default cache dir) is being done in sync (in a worker thread). Make it run in async instead.

### Tasks
- [ ] Non-blocking
- [ ] Info and debug logs during provisioning
- [ ] Include stderr in provisioning error when `log_output` is set
- [ ] Make sure cancellations are properly handled and work as expected
- [ ] Make sure timeouts are properly handled during connection, not just query execution
- [ ] Consider supporting retries on a failed connection
- [ ] Capture more error conditions
- [ ] Capture OS signals to shut down

Related

Activity

  1. added
    area/engine
    on Nov 4, 2022
  2. removed
    area/engine
    on Nov 21, 2022
  3. helderco commented on Dec 6, 2022

    @helderco
    Author
  4. self-assigned this
    on Feb 9, 2023
  5. changed the title [-]Make provision work well in async[/-] [+]Python: Make provision work well in async[/+] on Feb 10, 2023
  6. changed the title [-]Python: Make provision work well in async[/-] [+]Python: Run the auto provisioning in async[/+] on Jul 18, 2023
  7. changed the title [-]Python: Run the auto provisioning in async[/-] [+]Python: Run auto provisioning in async[/+] on Jul 18, 2023
  8. helderco commented on Dec 7, 2023

    @helderco
    ContributorAuthor

    I'm closing this in favor of shifting to using modules which don't need provisioning. The current sync approach is good enough in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions