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

Add detailed_job_info #21

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions aiida_hyperqueue/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ def _parse_kill_output(self, retval, stdout, stderr):
return True

def _get_detailed_job_info_command(self, job_id: str) -> dict[str, t.Any]:
"""hq command to get the detailed job info."""
"""Return the command to run to get the detailed information on a job,
even after the job has finished.

# TODO: implement me to get walltime issue etc
The output text is just retrieved, and returned for logging purposes.
`jq` is used to transform the json into a one-line string.
"""
return f"hq job info {job_id} --output-mode json | jq -c ."
Loading