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 +4 -4
- data/lib/workflow_manager/cluster.rb +15 -0
- data/lib/workflow_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e3136cc9a68d903b2af2cbbc99e85fbf908fa30
|
|
4
|
+
data.tar.gz: 534ef249ca56587da8b78f9026586cf245952b7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|