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

Job not wait properly but immediately finished with error because job id of JobInfo is an int #29

Closed
unkcpz opened this issue Jul 20, 2024 · 0 comments · Fixed by #30
Closed
Labels
bug Something isn't working

Comments

@unkcpz
Copy link
Member

unkcpz commented Jul 20, 2024

The id field of JobInfo is expecting a str, but the id read from JSON is auto converted to int. This cause the job immediately finished and parsed but not actually running.

@unkcpz unkcpz added the bug Something isn't working label Jul 20, 2024
unkcpz added a commit to unkcpz/aiida-hyperqueue that referenced this issue Jul 20, 2024
fixes aiidateam#29

The id field of JobInfo is expecting a str. In aiidateam#24 when parsing JSON
output of `hq job list` the json loads will use the int for the id
parsed directly. Wrong type causes the subtle issue that when job is
waiting it not get into QUEUED state, but immediatly finished and get
nothing to parse from output.
unkcpz added a commit that referenced this issue Jul 22, 2024
fixes #29

The id field of JobInfo is expecting a str. In #24 when parsing JSON
output of `hq job list` the json loads will use the int for the id
parsed directly. Wrong type causes the subtle issue that when job is
waiting it not get into QUEUED state, but immediatly finished and get
nothing to parse from output.
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

Successfully merging a pull request may close this issue.

1 participant