ood_core 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -1
- data/lib/ood_core/job/adapters/sge.rb +1 -1
- data/lib/ood_core/job/adapters/sge/batch.rb +13 -6
- data/lib/ood_core/version.rb +1 -1
- data/ood_core.gemspec +2 -2
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9f4136abfa563b5a8e552a4ea23fb28886d0504e
|
4
|
+
data.tar.gz: 8fd45406db0789e635ae41ca52021d7317eac883
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cc80ddf1f1d99e10c96ade0fcc70cd6cb96638fc204dbc6ecf8533bf7753d9c80077486f1a7cb15e2270e11aba0366fdec8dbb20cfcb00e0d6bfd33f7e03894
|
7
|
+
data.tar.gz: e1f944deee57a03dd800bd4217b1c7f125e087edd284a87ab3dae4b655231c8b511d83e256a7df24afa66c76b72e95fd8fe60a549dd45f525ca6016fe8d21fb3
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
|
+
## [0.7.1] - 2019-01-11
|
10
|
+
### Fixed
|
11
|
+
- Fixed crash when libdrmaa is used to query for a job no longer in the queue
|
9
12
|
|
10
13
|
## [0.7.0] - 2018-12-26
|
11
14
|
### Added
|
@@ -153,7 +156,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
153
156
|
### Added
|
154
157
|
- Initial release!
|
155
158
|
|
156
|
-
[Unreleased]: https://github.com/OSC/ood_core/compare/v0.7.
|
159
|
+
[Unreleased]: https://github.com/OSC/ood_core/compare/v0.7.1...HEAD
|
160
|
+
[0.7.1]: https://github.com/OSC/ood_core/compare/v0.7.0...v0.7.1
|
157
161
|
[0.7.0]: https://github.com/OSC/ood_core/compare/v0.6.0...v0.7.0
|
158
162
|
[0.6.0]: https://github.com/OSC/ood_core/compare/v0.5.1...v0.6.0
|
159
163
|
[0.5.1]: https://github.com/OSC/ood_core/compare/v0.5.0...v0.5.1
|
@@ -66,17 +66,21 @@ class OodCore::Job::Adapters::Sge::Batch
|
|
66
66
|
argv += ['-u', owner] unless owner.nil?
|
67
67
|
REXML::Parsers::StreamParser.new(call(*argv), listener).parse
|
68
68
|
|
69
|
-
listener.parsed_jobs.map{
|
69
|
+
listener.parsed_jobs.map{
|
70
|
+
|job_hash| OodCore::Job::Info.new(
|
71
|
+
**post_process_qstat_job_hash(job_hash)
|
72
|
+
)
|
73
|
+
}
|
70
74
|
end
|
71
75
|
|
72
76
|
# Get OodCore::Job::Info for a job_id that may still be in the queue
|
73
77
|
#
|
74
|
-
# If libdrmaa is not loaded then we cannot use DRMAA. Using
|
75
|
-
#
|
78
|
+
# If libdrmaa is not loaded then we cannot use DRMAA. Using DRMAA provides
|
79
|
+
# better job status and should always be chosen if it is possible.
|
76
80
|
#
|
77
|
-
# When qstat is called in XML mode for a job id that is not in the queue
|
78
|
-
# is returned. The second line of the invalid XML contains the
|
79
|
-
# which will be used to recognize this case.
|
81
|
+
# When qstat is called in XML mode for a job id that is not in the queue
|
82
|
+
# invalid XML is returned. The second line of the invalid XML contains the
|
83
|
+
# string '<unknown_jobs' which will be used to recognize this case.
|
80
84
|
#
|
81
85
|
# @param job_id [#to_s]
|
82
86
|
# @return [OodCore::Job::Info]
|
@@ -105,6 +109,9 @@ class OodCore::Job::Adapters::Sge::Batch
|
|
105
109
|
unless results =~ /unknown_jobs/
|
106
110
|
raise e, "REXML::ParseException error and command '#{argv.join(' ')}' produced results that didn't contain string 'unknown_jobs'. ParseException: #{e.message}"
|
107
111
|
end
|
112
|
+
rescue StandardError => e
|
113
|
+
# Note that DRMAA is not guaranteed to be defined, hence the tests
|
114
|
+
raise e unless ( can_use_drmaa? && e.is_a?(DRMAA::DRMAAInvalidJobError)) # raised when job is not found
|
108
115
|
end
|
109
116
|
|
110
117
|
job_info
|
data/lib/ood_core/version.rb
CHANGED
data/ood_core.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'ood_core/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "ood_core"
|
8
8
|
spec.version = OodCore::VERSION
|
9
|
-
spec.authors = ["
|
10
|
-
spec.email = ["
|
9
|
+
spec.authors = ["Eric Franz", "Morgan Rodgers", "Jeremy Nicklas"]
|
10
|
+
spec.email = ["efranz@osc.edu", "mrodgers@osc.edu", "jnicklas@osc.edu"]
|
11
11
|
|
12
12
|
spec.summary = %q{Open OnDemand core library}
|
13
13
|
spec.description = %q{Open OnDemand core library that provides support for an HPC Center to globally define HPC services that web applications can then take advantage of.}
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ood_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Eric Franz
|
8
8
|
- Morgan Rodgers
|
9
|
+
- Jeremy Nicklas
|
9
10
|
autorequire:
|
10
11
|
bindir: exe
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2019-01-11 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: ood_support
|
@@ -118,8 +119,9 @@ dependencies:
|
|
118
119
|
description: Open OnDemand core library that provides support for an HPC Center to
|
119
120
|
globally define HPC services that web applications can then take advantage of.
|
120
121
|
email:
|
121
|
-
-
|
122
|
+
- efranz@osc.edu
|
122
123
|
- mrodgers@osc.edu
|
124
|
+
- jnicklas@osc.edu
|
123
125
|
executables: []
|
124
126
|
extensions: []
|
125
127
|
extra_rdoc_files: []
|
@@ -193,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
195
|
version: '0'
|
194
196
|
requirements: []
|
195
197
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.
|
198
|
+
rubygems_version: 2.6.8
|
197
199
|
signing_key:
|
198
200
|
specification_version: 4
|
199
201
|
summary: Open OnDemand core library
|