core.py's Job class default regex not selecting correct job id
还没有人认领这个 Issue。
评估
调研方向
从 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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dask/dask-jobqueue 的其他 Issue
-
bug LSF
难度 3/5 1-2 天 新手友好度 65/100
dask/dask-jobqueue#703 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
dask/dask-jobqueue#701 ·
-
bug
难度 3/5 1-2 天 新手友好度 38/100
dask/dask-jobqueue#692 · 1 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
dask/dask-jobqueue#691 · 7 条评论 ·
-
难度 2/5 半天 新手友好度 45/100
dask/dask-jobqueue#686 · 3 条评论 ·
查看 dask/dask-jobqueue 的全部 Issue
相似的 Issue
-
namespace operations
难度 1/5 1 小时以内 新手友好度 82/100
EclipseFdn/open-vsx.org#13573 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
collective/icalendar#1854 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
rancher/rancher-ai-agent#412 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
TUDelftGeodesy/DePSI#134 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
HenriquesLab/rxiv-maker#335 ·