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

Fix rusage #23

Merged
merged 2 commits into from
Jul 2, 2015
Merged

Fix rusage #23

merged 2 commits into from
Jul 2, 2015

Conversation

tomgreen66
Copy link
Contributor

This should fix an issues reported in issue #22 where with PBS Pro 12.2 and pbs-drmaa we can get the following error:

68275.server
Your job has been submitted with id 68275.server
Traceback (most recent call last):
  File "ex3.py", line 36, in <module>
    main()
  File "ex3.py", line 26, in main
    retval = s.wait(jobid, drmaa.Session.TIMEOUT_WAIT_FOREVER)
  File "/home/user/drmaa_example/test_git/drmaa/session.py", line 472, in wait
    res_usage = adapt_rusage(rusage)
  File "/home/user/drmaa_example/test_git/drmaa/helpers.py", line 238, in adapt_rusage
    k, v = attr.split('=')
ValueError: too many values to unpack

With fix then it correctly works.

68277.server
Your job has been submitted with id 68277.server
Job: 68277.server finished with status True
Job status = done
Cleaning up

@dan-blanchard
Copy link
Contributor

👍 Thanks!

dan-blanchard added a commit that referenced this pull request Jul 2, 2015
@dan-blanchard dan-blanchard merged commit 777bb37 into pygridtools:master Jul 2, 2015
@dan-blanchard dan-blanchard mentioned this pull request Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants