Skip to content

migrate to asyncio #945

Closed
Closed

Description

@L0ric0

Description of the problem, including code/CLI snippet

all the requests done in this module are syncronous. to use it more efficiently all requests should be converted to https://aiohttp.readthedocs.io/en/stable/ to make them concurrent

Expected Behavior

posibility for concurrent requests

Actual Behavior

only syncronus requests

Specifications

  • python-gitlab version:
  • API version you are using (v3/v4):
  • Gitlab server version (or gitlab.com):

Activity

  1. changed the title [-]migrate to asyncioo[/-] [+]migrate to asyncio[/+] on Nov 22, 2019
  2. max-wittig commented on Nov 22, 2019

    @max-wittig
    Member

    Or httpx

    I would be open to review any MR regarding this topic.

  3. mitar commented on Dec 13, 2019

    @mitar
    Contributor

    The issue with async behavior is how to handle rate limiting. Just throwing bunch of requests into async queue can be tricky. You need some throttling.

  4. L0ric0 commented on Jan 20, 2020

    @L0ric0
    Author

    how should the migration be implemented? if we just change all methods to async current users will have to change there code but if we create our own event loop other async programs can't take full advantage of the async features.

    should we create a event loop in the gitlab object which could be handed to it from the init?

  5. nejch commented on May 30, 2021

    @nejch
    Member

    Let's track progress on this in #1025 if that's ok with you, as it has things fleshed out a bit more and httpx is the most requests-compatible alternative, maybe upvote there or otherwise let us know here if this should be reopened.

    For rate limits, most likely something like https://github.com/florimondmanca/aiometer/ would help (also by httpx devs).

  6. locked as resolved and limited conversation to collaborators on Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions