`GET /api/v1/experiments/{id}/results` holds up other requests on the same API process while it computes

クローズ
#1,738 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #1763 @amarkanday による — マージ済み

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api, backend

調査の方向性

Start by tracing the /api/v1/experiments/{id}/results route and how it computes experiment results; the payload does not name the files or tests. Compare it with GET /api/v1/results/{id}, which computes the same results. Done when the experiment results request no longer blocks other requests on the same API process, including flag evaluations.

索引モデルが issue の本文から書いたものです。

説明

bug

What happens

While the API computes an answer to GET /api/v1/experiments/{id}/results, other requests to the same API process wait until it has
finished, including flag evaluations. On a deployment with one API worker, a results request for a large experiment holds up every other
request for as long as the computation takes.

What should happen

Computing an experiment's results does not hold up other requests on the process.

Notes

  • Priority: medium, before launch (D213: on a one-worker deployment it delays flag evaluation, use cases 1 and 2).
  • GET /api/v1/results/{id} computes the same results; this issue is about the /experiments/{id}/results route.
主要言語
Python
スター
0
フォーク
4
平均マージ
5時間 36分
マージ済み PR(30日)
509

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Controlvar/controlvar のほかの issue

Controlvar/controlvar の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。