Bound SSH connect and the liveness check for queue status queries

オープン
#1,150 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

Start at get_server_job_ids, then follow borrow_ssh_client into SSHClient.connect() and check_connections to see how the queue query timeout is applied. Add coverage for a server whose connect raises socket.timeout; done means the query records a failure within the timeout instead of waiting through retries. The issue does not name a test file, so locate the relevant queue query tests first.

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

説明

Follow-up from a bot review on #1122 (comment 4729086259). Not a v2.0.0 blocker.

get_server_job_ids reaches a remote queue through borrow_ssh_client → SSHClient.connect().
That retries a transport-level failure every 60 s for connection_attempts=1440 (24 h) and
checks liveness with an untimed exec_command('ls') (check_connections).
queue_query_timeout bounds only the status command. So an unreachable server blocks the
scheduler loop, and every other server's polling, for up to a day before queue_outage_limit
can apply. For queue queries, connect with a small attempt count (or a deadline tied to
queue_query_timeout), and time the liveness check, so a failure becomes a QueueQueryError
at once. Test: a server whose connect raises socket.timeout; assert one queue query records a
failure within the timeout rather than sleeping.

主要言語
Python
スター
55
フォーク
26
平均マージ
3日 3時間
マージ済み PR(30日)
8

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

ReactionMechanismGenerator/ARC のほかの issue

ReactionMechanismGenerator/ARC の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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