One deadline for a queue status query over SSH

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

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

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

評価

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

調査の方向性

Find SSHClient._send_command_to_server and inspect how it opens the channel, reads stdout and stderr, and checks the exit status. Use a fake channel that yields a line every 0.1 seconds to verify a 1 second timeout raises TimeoutError within about 1.5 seconds and closes the channel.

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

説明

Follow-up from a Copilot review on #1093 (comment 4729079800); not a v2.0.0 blocker.

SSHClient._send_command_to_server(timeout=...) passes the timeout to paramiko, which applies it
to each blocking read. A command that keeps writing output and never exits can stay in
readlines() past queue_query_timeout, so the retry and outage-limit logic never runs. No
shipped check_status_command does that, but a user's custom command might. Read stdout and
stderr with non-blocking recv/recv_stderr against one time.monotonic() deadline that spans
channel open, drain and exit status, close the channel at the deadline, and raise
TimeoutError. Test: a fake channel that yields a line every 0.1 s forever, with a 1 s timeout;
assert TimeoutError within about 1.5 s and that the channel is closed.

主要言語
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 を短くまとめたダイジェスト。