Backend API: Formally define the "state" of a future
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- r
調査の方向性
内部の state フィールドと、future 1.32.0 で追加されたと記載されている $<-.Future の検証から始めます。FutureResults が評価の失敗と中断をどのように表現するかを確認し、そのうえで完了を定義する標準化された状態値とバックエンドの動作を特定します。
索引モデルが issue の本文から書いたものです。
説明
The state of a future is stored in the internal state field, which takes a character string. Supported values are:
"created"- the future has been created, but not yet not launched"running"- the future has been launched, and is assumed to be running"finished"- the future has been successfully evaluated ("resolved"); results may or may not have been collected
It is to be decided if:
"failed"- evaluation of the future failed"interrupted"- evaluation of the future was interrupted
should also be added to the above list. They are really not needed, because they could be inferred if we collect the FutureResults object and inspect that.
In the past, this was mostly specific to the future package, but with the move to a more generic backend solution (e.g. lazy futures are vanilla Future objects until launched, make it possible to relaunch failed Future objects, etc.) we need to tighten this up and standardize it.
- I'll start by adding internal validation to the still, internal field
state, to make sure it only takes known values, e.g. by creating a$<-.Futuremethod. (Added to future 1.32.0 [2023-03-07]).
- 主要言語
- R
- スター
- 1k
- フォーク
- 93
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
futureverse/future のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
futureverse/future#852 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
futureverse/future#849 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
futureverse/future#833 ·
-
feature/resources RNG
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
futureverse/future#832 ·
-
RNG
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
futureverse/future#831 · コメント 1 件 ·
futureverse/future の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
nf-core/provenancereport#75 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
garner-code/PsyR#80 ·