workflow_manager 0.7.9 → 0.8.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
2
  SHA256:
3
- metadata.gz: bb29ff98b1a798d31a2a6d3bc84b0a2145d975e8b5e30ef242f309eb74edd099
4
- data.tar.gz: 8214d4df1d712c8926e771999105201f141c2495a86008c0dd661b45f6826ad3
3
+ metadata.gz: 46119a1d4da028cc76b16a56545512607afa923742d982f2b5f1941ce42bacd3
4
+ data.tar.gz: 922c122276a8e6842017288a643eb4dbe208b4f69907f690d4a8c00adb1649b3
5
5
  SHA512:
6
- metadata.gz: 2e9fb82f9743d5545235fab63e95c892d6acb879fd1d13c21ffba15df0cff53bc131a5b89453234e48fc13d468c24dced45f948dfe54f1c28fcb4324b5f758bc
7
- data.tar.gz: 6754552645ac73a6609f8e5175f248892a138c0a20392a54fd79de1395c0e7c4e273c3efea1fc984867fcdd3894aa23724026d5699dbcace2bfee441eedc0f09
6
+ metadata.gz: 1a2e0eea78ab77f45b1b80e558f880ef362c2668cb3d30b67039dc078fd45a27d49401d802c46caeb55352053b25f22a05f7d50d5ff0b6d970e22e8fdd73b043
7
+ data.tar.gz: ec74fee4bebb6c4014535e228a1c2c6b229a8a7151c540c9fb9853635a207e05a177ec9f8dcce4cf7f5eb331294a6ef1eed213f6893404155d030c4595ada2c9
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
data/Gemfile.lock ADDED
@@ -0,0 +1,31 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ workflow_manager (0.8.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ concurrent-ruby (1.2.2)
10
+ connection_pool (2.4.1)
11
+ rack (3.0.8)
12
+ redis (5.0.6)
13
+ redis-client (>= 0.9.0)
14
+ redis-client (0.17.0)
15
+ connection_pool
16
+ sidekiq (7.1.4)
17
+ concurrent-ruby (< 2)
18
+ connection_pool (>= 2.3.0)
19
+ rack (>= 2.2.4)
20
+ redis-client (>= 0.14.0)
21
+
22
+ PLATFORMS
23
+ x86_64-linux
24
+
25
+ DEPENDENCIES
26
+ redis
27
+ sidekiq
28
+ workflow_manager!
29
+
30
+ BUNDLED WITH
31
+ 2.3.26
@@ -1,9 +1,13 @@
1
- loglevel debug
2
- logfile ./logs/redis.log
1
+ # example: https://raw.githubusercontent.com/redis/redis/7.0/redis.conf
2
+ # default, for production
3
+ port 6379
4
+ # for test
5
+ #port 6380
6
+ loglevel notice
7
+ logfile ../logs/redis.log
3
8
  databases 5
4
- save 300 10
9
+ save 3600 1 300 10 60 1000
5
10
  rdbcompression yes
6
- dir ./dbs
7
11
  dbfilename redis.rdb
12
+ dir dbs
8
13
  maxmemory 10gb
9
- port 6379
@@ -28,7 +28,7 @@ module WorkflowManager
28
28
  end
29
29
  def job_pending?(job_id)
30
30
  end
31
- def copy_commands(org_dir, dest_parent_dir, now=nil)
31
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
32
32
  end
33
33
  def kill_command(job_id)
34
34
  end
@@ -75,7 +75,7 @@ module WorkflowManager
75
75
  result = `#{command}`
76
76
  result.to_s.empty? ? false : true
77
77
  end
78
- def copy_commands(org_dir, dest_parent_dir, now=nil)
78
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
79
79
  commands = []
80
80
  commands << "mkdir -p #{dest_parent_dir}"
81
81
  commands << "cp -r #{org_dir} #{dest_parent_dir}"
@@ -199,7 +199,7 @@ module WorkflowManager
199
199
  end
200
200
  qstat_flag
201
201
  end
202
- def copy_commands(org_dir, dest_parent_dir, now=nil)
202
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
203
203
  commands = if now == "force"
204
204
  target_file = File.join(dest_parent_dir, File.basename(org_dir))
205
205
  ["g-req copynow -f #{org_dir} #{dest_parent_dir}"]
@@ -300,7 +300,7 @@ module WorkflowManager
300
300
  end
301
301
 
302
302
  class FGCZCourseCluster < FGCZCluster
303
- def copy_commands(org_dir, dest_parent_dir, now=nil)
303
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
304
304
  commands = ["cp -r #{org_dir} #{dest_parent_dir}"]
305
305
  end
306
306
  def delete_command(target)
@@ -333,7 +333,7 @@ module WorkflowManager
333
333
  def job_pending?(job_id)
334
334
  # TODO
335
335
  end
336
- def copy_commands(org_dir, dest_parent_dir, now=nil)
336
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
337
337
  # TODO
338
338
  end
339
339
  def kill_command(job_id)
@@ -411,7 +411,7 @@ module WorkflowManager
411
411
  end
412
412
  qstat_flag
413
413
  end
414
- def copy_commands(org_dir, dest_parent_dir, now=nil)
414
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
415
415
  commands = if now == "force"
416
416
  target_file = File.join(dest_parent_dir, File.basename(org_dir))
417
417
  ["g-req copynow -f #{org_dir} #{dest_parent_dir}"]
@@ -521,14 +521,16 @@ module WorkflowManager
521
521
  end
522
522
  qstat_flag
523
523
  end
524
- def copy_commands(org_dir, dest_parent_dir, now=nil)
524
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
525
525
  commands = if now == "force"
526
526
  target_file = File.join(dest_parent_dir, File.basename(org_dir))
527
527
  ["g-req copynow -f #{org_dir} #{dest_parent_dir}"]
528
528
  elsif now
529
529
  ["g-req copynow #{org_dir} #{dest_parent_dir}"]
530
- else
530
+ elsif queue.nil? or queue == "light"
531
531
  ["g-req -w copy #{org_dir} #{dest_parent_dir}"]
532
+ else
533
+ ["g-req -w copy -f heavy #{org_dir} #{dest_parent_dir}"]
532
534
  end
533
535
  end
534
536
  def kill_command(job_id)
@@ -546,7 +548,7 @@ module WorkflowManager
546
548
  end
547
549
 
548
550
  class FGCZDebian10DemoCluster < FGCZDebian10Cluster
549
- def copy_commands(org_dir, dest_parent_dir, now=nil)
551
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
550
552
  commands = ["cp -r #{org_dir} #{dest_parent_dir}"]
551
553
  end
552
554
  def delete_command(target)
@@ -202,8 +202,8 @@ module WorkflowManager
202
202
  def hello
203
203
  'hello hoge hoge bar boo bundle, '+ @cluster.name
204
204
  end
205
- def copy_commands(org_dir, dest_parent_dir, now=nil)
206
- @cluster.copy_commands(org_dir, dest_parent_dir, now)
205
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
206
+ @cluster.copy_commands(org_dir, dest_parent_dir, now, queue)
207
207
  end
208
208
  def kill_job(job_id)
209
209
  status(job_id, 'FAIL')
@@ -1,3 +1,3 @@
1
1
  module WorkflowManager
2
- VERSION = "0.7.9"
2
+ VERSION = "0.8.1"
3
3
  end
@@ -1,11 +1,12 @@
1
1
  #!/usr/bin/bash
2
2
  source /usr/local/ngseq/etc/lmod_profile
3
- module load Dev/Ruby/2.6.7
4
- module load Tools/Redis/6.0.1
5
- conda activate gtools_env
3
+ module load Dev/Ruby/3.1.3
4
+ module load Tools/Redis/7.0.8
5
+ #conda activate gtools_env
6
6
  which python
7
7
  which g-sub
8
8
  which g-req
9
9
  mkdir -p logs
10
10
  mkdir -p dbs
11
- bundle exec workflow_manager -d druby://fgcz-h-032:40002
11
+ #bundle exec workflow_manager -d druby://fgcz-h-031:40001
12
+ bundle exec workflow_manager -d druby://fgcz-h-032:40001
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Functional Genomics Center Zurich
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-03 00:00:00.000000000 Z
11
+ date: 2023-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,6 +59,7 @@ files:
59
59
  - ".gitignore"
60
60
  - ".rspec"
61
61
  - Gemfile
62
+ - Gemfile.lock
62
63
  - LICENSE.txt
63
64
  - README.md
64
65
  - Rakefile
@@ -97,7 +98,7 @@ homepage: ''
97
98
  licenses:
98
99
  - MIT
99
100
  metadata: {}
100
- post_install_message:
101
+ post_install_message:
101
102
  rdoc_options: []
102
103
  require_paths:
103
104
  - lib
@@ -112,8 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
113
  - !ruby/object:Gem::Version
113
114
  version: '0'
114
115
  requirements: []
115
- rubygems_version: 3.0.3.1
116
- signing_key:
116
+ rubygems_version: 3.3.26
117
+ signing_key:
117
118
  specification_version: 4
118
119
  summary: Workflow Manager manages job submissions using dRuby.
119
120
  test_files: