Open marinelay opened 5 months ago
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.
https://github.com/spotify/luigi/blob/64d6c487c49548a5b97cc3ac6e0890f89d7dccd2/luigi/contrib/sge.py#L314-L322
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 raiseTypeError
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)
.