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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 948be1edf24a4e534669547d92b6ad56cc229183442a27705941bd959085a09a
4
- data.tar.gz: 700a6c5073641233ac36553350d4ab451e0b01d73f885bc7bd2695b81479b6fa
2
+ SHA1:
3
+ metadata.gz: 9f4136abfa563b5a8e552a4ea23fb28886d0504e
4
+ data.tar.gz: 8fd45406db0789e635ae41ca52021d7317eac883
5
5
  SHA512:
6
- metadata.gz: fcc1aa968fe78132164a5ba3ab6e6165f1f64b950ca1e3862b00020aec9915c1458e52897005a0057b6ca4d9205c3b463f8f9b421e85f9da75778fe27734b371
7
- data.tar.gz: 74af322ccb4e8f50c350d190bacc65440fb3ab79791a4cb03f5d081131a0d72ad186f43b647621d57053f4da717a59cd9efae9f8cb7c6c377b34ec4563faf100
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.0...HEAD
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
@@ -93,7 +93,7 @@ module OodCore
93
93
  def info_all
94
94
  @batch.get_all
95
95
  rescue Batch::Error => e
96
- raise JobAdapterError, e.message
96
+ raise JobAdapterError, e.message
97
97
  end
98
98
 
99
99
  # Retrieve info for all jobs for a given owner or owners from the
@@ -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{|job_hash| OodCore::Job::Info.new(**post_process_qstat_job_hash(job_hash))}
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
- # DRMAA provides better job status and should always be chosen if it is possible.
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 invalid XML
78
- # is returned. The second line of the invalid XML contains the string '<unknown_jobs'
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
@@ -1,4 +1,4 @@
1
1
  module OodCore
2
2
  # The current version of {OodCore}
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
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 = ["Jeremy Nicklas", "Morgan Rodgers"]
10
- spec.email = ["jnicklas@osc.edu", "mrodgers@osc.edu"]
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.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
- - Jeremy Nicklas
7
+ - Eric Franz
8
8
  - Morgan Rodgers
9
+ - Jeremy Nicklas
9
10
  autorequire:
10
11
  bindir: exe
11
12
  cert_chain: []
12
- date: 2018-12-27 00:00:00.000000000 Z
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
- - jnicklas@osc.edu
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.7.3
198
+ rubygems_version: 2.6.8
197
199
  signing_key:
198
200
  specification_version: 4
199
201
  summary: Open OnDemand core library