Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

core.py's Job class default regex not selecting correct job id

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

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

評価

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

調査の方向性

core.py の Job クラスと _job_id_from_submit_output から始め、wrapper メッセージが job id に先行する場合に qsub stdout がどのように解析されるかを確認します。デフォルトの regex がそれらのメッセージを回避するにはどうすべきかを判断し、情報テキスト、数値、改行を含む出力で、選択された値が実際の job id であることを検証します。

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

説明

I have a python code that uses dask_jobqueue's PBSCluster to manage workers on an HPC.

Within this environment, the qsub command calls a wrapper which does several important things for the environment before actually qsubbing the job. This wrapper sometimes prints informational messages to stdout (these messages contain text, numbers, newlines, etc) before listing the job id.

When this happens, the default regex for core.py's Job class ( (?P<job_id>\d+) ) will pull out the wrong string thinking it is the job id when it is in fact not.

One solution I had to this problem was subclassing Job and making _job_id_from_submit_output apply the regex to the last line of the stdout from qsub. I suppose I could also change the regex to something more robust too.

In practice the workarounds would be sufficient, however every change made to already existing software that uses dask at my work requires recertification, which draws more resources.

主要言語
Python
スター
256
フォーク
149
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

dask/dask-jobqueue のほかの issue

dask/dask-jobqueue の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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