Page MenuHomePhabricator

[components-api] Use an asynchronous toolforge client to interact with toolforge
Closed, InvalidPublic

Description

Otherwise when doing calls to toolforge, the fastapi server blocks and prevents serving any new requests.

Luckily, we can now generate it from the openapi def :)

Ex. https://gitlab.wikimedia.org/dcaro/toolforge_cli_gen

Event Timeline

dcaro changed the task status from Open to In Progress.Nov 5 2024, 4:27 PM
dcaro claimed this task.
dcaro moved this task from Next Up to In Progress on the Toolforge (Toolforge iteration 16) board.

This might not actually be needed :)

Reading https://fastapi.tiangolo.com/async/ and doing some tests to verify

Yep, we don't need to use async libraries to avoid the api from getting blocked, it will handle non-async code in a threadpool automatically and "do the right thing",

Dropping this task and the MRs :)

dcaro changed the task status from Resolved to Invalid.
dcaro moved this task from In Progress to Done on the Toolforge (Toolforge iteration 16) board.