dask / dask/dask-jobqueue

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

Open
#699 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
256
Forks
150
PR merge metrics
No merged PRs in 30d

Description

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\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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.