Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scheduler plugin chokes when job exits immediately #10

Open
ltalirz opened this issue Mar 4, 2022 · 0 comments
Open

scheduler plugin chokes when job exits immediately #10

ltalirz opened this issue Mar 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ltalirz
Copy link
Contributor

ltalirz commented Mar 4, 2022

If the remote job dies immediately, it can happen that the scheduler plugin raises an exception:

*** 2 LOG MESSAGES:
+-> ERROR at 2022-03-03 16:34:44.678009+00:00
 | the `parse_output` method of the scheduler excepted: not enough values to unpack (expected at least 1, got 0)
+-> REPORT at 2022-03-03 16:34:45.789686+00:00
 | [227|PyCalcJob|on_except]: Traceback (most recent call last):
 |   File "/opt/conda/lib/python3.8/site-packages/plumpy/process_states.py", line 231, in execute
 |     result = self.run_fn(*self.args, **self.kwargs)
 |   File "/home/aiida/aiida-core/aiida/engine/processes/calcjobs/calcjob.py", line 471, in parse
 |     exit_code_retrieved = self.parse_retrieved_output(retrieved_temporary_folder)
 |   File "/home/aiida/aiida-core/aiida/engine/processes/calcjobs/calcjob.py", line 560, in parse_retrieved_output
 |     exit_code = parser.parse(**parse_kwargs)
 |   File "/home/aiida/aiida-dynamic-workflows/aiida_dynamic_workflows/parsers.py", line 52, in parse
 |     job_infos = calc.computer.get_scheduler().parse_detailed_job_info(
 |   File "/home/aiida/aiida-dynamic-workflows/aiida_dynamic_workflows/schedulers.py", line 64, in parse_detailed_job_info
 |     fields, *job_infos = lines
 | ValueError: not enough values to unpack (expected at least 1, got 0)
@jbweston jbweston added the bug Something isn't working label Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants