Closed
Description
I tried to use the local runner in my new project and got the following error message:
Command is:
jf project check -w example_local
Error message is (after adding a print in the source code, the --full-exc flag does not help?):
Error while testing worker:
Traceback (most recent call last):
File "/Users/fabianpeschel/code/QToolKit/src/qtoolkit/io/shell.py", line 230, in parse_jobs_list_output
shell_job_state = ShellState(data[3])
File "/Users/fabianpeschel/miniconda3/envs/excworkflow/lib/python3.10/enum.py", line 385, in __call__
return cls.__new__(cls, value)
File "/Users/fabianpeschel/miniconda3/envs/excworkflow/lib/python3.10/enum.py", line 710, in __new__
raise ve_exc
ValueError: 'S+' is not a valid ShellState
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/fabianpeschel/code/jobflow-remote/src/jobflow_remote/config/helper.py", line 161, in check_worker
qm.get_jobs_list()
File "/Users/fabianpeschel/code/jobflow-remote/src/jobflow_remote/remote/queue.py", line 204, in get_jobs_list
return self.scheduler_io.parse_jobs_list_output(
File "/Users/fabianpeschel/code/QToolKit/src/qtoolkit/io/shell.py", line 234, in parse_jobs_list_output
raise OutputParsingError(msg)
qtoolkit.core.exceptions.OutputParsingError: Unknown job state S+ for job id 1442
This comes from the following output of the command ps -o pid,user,etime,state,comm
:
PID USER ELAPSED STAT COMM
1442 fabianpeschel 14-07:08:54 S+ -zsh
81288 fabianpeschel 01-08:41:00 S -zsh
89417 fabianpeschel 08:56:19 S -zsh
89427 fabianpeschel 08:56:15 S+ /Users/fabianpeschel/miniconda3/envs/excforjup/bin/python
85691 fabianpeschel 01-04:26:07 S+ -zsh
58649 fabianpeschel 06-05:34:07 Ss+ /bin/zsh
36512 fabianpeschel 10-09:55:09 S+ -zsh
20263 fabianpeschel 12-10:01:09 Ss+ /bin/zsh
21470 fabianpeschel 12-09:07:12 Ss+ /bin/zsh
58655 fabianpeschel 06-05:34:03 Ss+ /bin/zsh
58668 fabianpeschel 06-05:33:52 Ss /bin/zsh
58693 fabianpeschel 06-05:33:23 S+ /Users/fabianpeschel/miniconda3/envs/excworkflow/bin/python
58701 fabianpeschel 06-05:33:22 Z+ <defunct>
92245 fabianpeschel 06:46:58 Ss+ /bin/zsh
64804 fabianpeschel 05-08:20:38 S+ -zsh
92788 fabianpeschel 06:42:38 Ss+ /bin/zsh
Problematic is the status, which is in the current implementation only allowed to be single character indicating the status. But on my local mac, more characters appear indicating session leaders and foreground processes (described here: https://www.computerhope.com/unix/ups.htm).
The additional info could be simply ignored by changing line 228 in io/shell.py:
shell_job_state = ShellState(data[3][0])
@Developers: If I would like to open pull requests, how to do it best?
Metadata
Metadata
Assignees
Labels
No labels