You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In luigi.contrib.sge.py at line 321, text=True option have to be given in subprocess.check_output(['qstat']) because _parse_qstat_state function only allow string type.
The current code always raise TypeError in _parse_qstat_state when running _track_job method.
If there is no reason qstat_out variable should be bytes type, I believe it is ideal to change subprocess.check_output(['qstat']) to subprocess.check_output(['qstat'], text=True).
The text was updated successfully, but these errors were encountered:
Wait, I found that this bug was already discussed and even given a pull request 6 years ago (#2480).
I think it doesn't seem to be well maintained for some reason.
I'll close the issue if it doesn't get fixed for a while.
luigi/luigi/contrib/sge.py
Lines 314 to 322 in 64d6c48
In
luigi.contrib.sge.py
at line 321,text=True
option have to be given insubprocess.check_output(['qstat'])
because_parse_qstat_state
function only allow string type.The current code always raise
TypeError
in_parse_qstat_state
when running_track_job
method.If there is no reason
qstat_out
variable should be bytes type, I believe it is ideal to changesubprocess.check_output(['qstat'])
tosubprocess.check_output(['qstat'], text=True)
.The text was updated successfully, but these errors were encountered: