channable / channable/opsqueue

Strategies don't allow preferring certain submissions over others except for their age

オープン
#95 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Rust
スター
96
フォーク
2
平均マージ
1時間 2分
マージ済み PR(30日)
2

説明

https://github.com/channable/opsqueue/blob/78f1cc11fe0905d332a3f2fb47ef29f88afa034f/libs/opsqueue_python/src/common.rs#L102-L115

`Highest(meta_key)`/`Lowest(meta_key)`: Would make sense as this allows eating from one side of the key space

* We already have `Oldest`/`Newest`: effectively `Highest`/`Lowest` with `submission_time` as `meta_key`
* Priority based scheduling could be implemented using these strategies
* Underlying strategies could be used to move the needle further
* For high priority submissions you would prefer newest if latency is important
* For low priority submission you could prefer oldest, i.e. preferring finishing submitted work

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

102-115行目付近の libs/opsqueue_python/src/common.rs を読み、既存の Oldest 戦略と Newest 戦略から始めます。戦略のメタデータキーがどのように提出物を選択するかを追跡し、それらの戦略と一貫する形で Highest(meta_key) と Lowest(meta_key) を定義します。呼び出し元が任意のメタデータキーによって提出物を選択でき、既存の経過時間ベースの動作を維持できれば完了です。

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

評価

技術スタック
rust
領域
backend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

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

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