workflow_manager 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32decb9ae3c53071739fabdd960890bdc541f826
4
- data.tar.gz: ca9959ed59926862e2ab4a8e133155bd84fd365a
3
+ metadata.gz: 8e3136cc9a68d903b2af2cbbc99e85fbf908fa30
4
+ data.tar.gz: 534ef249ca56587da8b78f9026586cf245952b7e
5
5
  SHA512:
6
- metadata.gz: f6faf2e98ca787cd24ad233a6edeacc683e5177e67f6df97898596326a888c7c9f96e490905c3d22480397ef624076da132f118b90d951ca980efd3325c4db4e
7
- data.tar.gz: 5970c28ab04e145635234a44e803a9fc9ec1ebdd08844ba43bb25165136b42ef15c0bb5eda2bf9b11893e2a75e073994c1cc42a81252d7f1f76313b1b9ee4dd0
6
+ metadata.gz: 8e60ee6e9b6b52a911c1caf429a7a9c71fbfbf4fcc4b69be341b609fc167bfe57585fc519062090d5b980822225129daeef21188d0bcc30f0ee7ed53dda2afd2
7
+ data.tar.gz: 4969f7341fb97bcbce3ee6f7931e782260b57ec7f0279e7f0d1f1ba55141f36ebcfe36289a4088cd9fee2ebf51725e2e916f3dd7200a28a6a1d93bf598b4f7c9
@@ -118,6 +118,21 @@ module WorkflowManager
118
118
  end
119
119
  result
120
120
  end
121
+ def job_pending?(job_id)
122
+ command = "tsp"
123
+ result = IO.popen(command) do |io|
124
+ flag = false
125
+ while line=io.gets
126
+ x = line.split
127
+ if x[0].to_i == pid.to_i and x[1] == "queued"
128
+ flag = true
129
+ break
130
+ end
131
+ end
132
+ flag
133
+ end
134
+ result
135
+ end
121
136
  def kill_command(job_id)
122
137
  command = "tsp -k #{job_id}"
123
138
  end
@@ -1,3 +1,3 @@
1
1
  module WorkflowManager
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Functional Genomics Center Zurich