workflow_manager 0.1.8 → 0.2.1
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.
data/bin/workflow_manager
CHANGED
@@ -3,9 +3,10 @@
|
|
3
3
|
|
4
4
|
require 'workflow_manager'
|
5
5
|
require 'fileutils'
|
6
|
+
Version = WorkflowManager::VERSION
|
6
7
|
|
7
8
|
opt = OptionParser.new do |o|
|
8
|
-
o.banner = "
|
9
|
+
o.banner = "Version: #{Version}\nUsage:\n #{File.basename(__FILE__)} -d [druby://host:port] -m [development|production]"
|
9
10
|
o.on(:server, 'druby://localhost:12345', '-d server', '--server', 'workflow manager URI (default: druby://localhost:12345)')
|
10
11
|
o.on(:mode, 'development', '-m mode', '--mode', 'development|production (default: development)')
|
11
12
|
o.parse!(ARGV)
|
@@ -16,6 +17,7 @@ if opt.mode =~ /[development|production]/
|
|
16
17
|
config = File.join(File.dirname(File.expand_path(__FILE__)), "../config/environments/#{opt.mode}.rb")
|
17
18
|
opt.mode = nil unless File.exist?(config)
|
18
19
|
end
|
20
|
+
print "version = #{Version}\n"
|
19
21
|
print "mode = #{opt.mode}\n"
|
20
22
|
if opt.mode
|
21
23
|
config_dir = "./config/environments/"
|
@@ -32,6 +32,10 @@ module WorkflowManager
|
|
32
32
|
end
|
33
33
|
def delete_command(target)
|
34
34
|
end
|
35
|
+
def cluster_nodes
|
36
|
+
end
|
37
|
+
def default_node
|
38
|
+
end
|
35
39
|
end
|
36
40
|
|
37
41
|
class LocalComputer < Cluster
|
@@ -79,6 +83,9 @@ module WorkflowManager
|
|
79
83
|
def delete_command(target)
|
80
84
|
command = "rm -rf #{target}"
|
81
85
|
end
|
86
|
+
def cluster_nodes
|
87
|
+
{"Local Computer" => ""}
|
88
|
+
end
|
82
89
|
end
|
83
90
|
|
84
91
|
class FGCZCluster < Cluster
|
@@ -131,6 +138,29 @@ module WorkflowManager
|
|
131
138
|
def delete_command(target)
|
132
139
|
command = "g-req remove #{target}"
|
133
140
|
end
|
141
|
+
def cluster_nodes
|
142
|
+
nodes = {
|
143
|
+
'fgcz-c-045: cpu 64,mem 504 GB,scr 15T' => 'fgcz-c-045',
|
144
|
+
'fgcz-c-046: cpu 64,mem 504 GB,scr 11T' => 'fgcz-c-046',
|
145
|
+
'fgcz-c-047: cpu 32,mem 1 TB,scr 28T' => 'fgcz-c-047',
|
146
|
+
'fgcz-c-048: cpu 48,mem 252 GB,scr 3.5T' => 'fgcz-c-048',
|
147
|
+
'fgcz-c-049: cpu 8,mem 63 GB,scr 1.7T' => 'fgcz-c-049',
|
148
|
+
'fgcz-c-051: cpu 8,mem 31 GB,scr 800G' => 'fgcz-c-051',
|
149
|
+
'fgcz-c-052: cpu 8,mem 31 GB,scr 800G' => 'fgcz-c-052',
|
150
|
+
'fgcz-c-053: cpu 8,mem 31 GB,scr 800G' => 'fgcz-c-053',
|
151
|
+
'fgcz-c-054: cpu 8,mem 31 GB,scr 800G' => 'fgcz-c-054',
|
152
|
+
'fgcz-c-055: cpu 8,mem 31 GB,scr 800G' => 'fgcz-c-055',
|
153
|
+
'fgcz-c-057: cpu 8,mem 31 GB,scr 200G' => 'fgcz-c-057',
|
154
|
+
'fgcz-c-058: cpu 8,mem 31 GB,scr 200G' => 'fgcz-c-058',
|
155
|
+
'fgcz-c-059: cpu 8,mem 31 GB,scr 200G' => 'fgcz-c-059',
|
156
|
+
'fgcz-c-061: cpu 8,mem 31 GB,scr 200G' => 'fgcz-c-061',
|
157
|
+
'fgcz-c-063: cpu 12,mem 70 GB,scr 450G' => 'fgcz-c-063',
|
158
|
+
'fgcz-c-065: cpu 24,mem 70 GB,scr 197G' => 'fgcz-c-065',
|
159
|
+
'fgcz-h-002: cpu 32,mem 63 GB,scr 500G' => 'fgcz-h-002',
|
160
|
+
'fgcz-h-005: cpu 16,mem 65 GB,scr 500G' => 'fgcz-h-005',
|
161
|
+
'fgcz-h-006: cpu 8,mem 30 GB,scr 500G' => 'fgcz-h-006',
|
162
|
+
}
|
163
|
+
end
|
134
164
|
end
|
135
165
|
|
136
166
|
class FGCZCourseCluster < FGCZCluster
|
@@ -117,6 +117,12 @@ module WorkflowManager
|
|
117
117
|
def delete_command(target)
|
118
118
|
@cluster.delete_command(target)
|
119
119
|
end
|
120
|
+
def cluster_nodes
|
121
|
+
@cluster.cluster_nodes
|
122
|
+
end
|
123
|
+
def default_node
|
124
|
+
@cluster.default_node.to_s
|
125
|
+
end
|
120
126
|
def log_puts(str)
|
121
127
|
time = Time.now.strftime("[%Y.%m.%d %H:%M:%S]")
|
122
128
|
@mutex.synchronize do
|
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.1
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 1.8.
|
105
|
+
rubygems_version: 1.8.23.2
|
106
106
|
signing_key:
|
107
107
|
specification_version: 3
|
108
108
|
summary: Workflow Manager manages job submissions using dRuby.
|