rq 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ */5 * * * * (/dmsp/reference/bin/ruby /dmsp/moby-1-1/ahoward/shared/eg/ruby/rq/rq-0.1.5/bin/rq /dmsp/moby-1-1/ahoward/shared/eg/ruby/rq/rq-0.1.5/q feed -d -l/home/ahoward/cfq.log -v4 -q) >>/home/ahoward/cfq.oe 2>&1
2
+
@@ -0,0 +1,18 @@
1
+ #!/dmsp/reference/bin/ruby
2
+ STDOUT.sync = true
3
+ $VERBOSE=nil
4
+ require 'posixlock'
5
+ q = ARGV.shift || 'q'
6
+ begin
7
+ open("#{ q }/lock",'r+') do |f|
8
+ puts 'locking...'
9
+ #f.lockf File::F_LOCK, 0
10
+ (locked=f.lockf(File::F_TLOCK, 0)) until locked
11
+ system "touch -B 3600 q/lock"
12
+ puts 'locked <enter> to unlock...'
13
+ STDIN.gets
14
+ end
15
+ puts 'un-locked'
16
+ rescue => e
17
+ p e
18
+ end
@@ -0,0 +1,27 @@
1
+ #!/dmsp/reference/bin/ruby
2
+ STDOUT.sync = true
3
+ $VERBOSE=nil
4
+ require 'posixlock'
5
+ sec = 8
6
+ loopno = 0
7
+ loop do
8
+ begin
9
+ open('q/lock','r+') do |f|
10
+ puts 'locking...'
11
+ #f.lockf File::F_LOCK, 0
12
+ (locked=f.lockf(File::F_TLOCK, 0)) or sleep(1 + rand) until locked
13
+ #locked = f.lockf(File::F_TLOCK, 0) until locked
14
+ system "touch -B 3600 q/lock"
15
+ puts 'locked'
16
+ sleep(30)
17
+ end
18
+ puts 'un-locked'
19
+ #sleep((2 * sec) + rand(42))
20
+ #sleep(sec + rand(sec))
21
+ sleep 300
22
+ rescue => e
23
+ p e
24
+ end
25
+ puts loopno
26
+ loopno += 1
27
+ end
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: "0.8"
3
+ specification_version: 1
4
+ name: rq
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.7
7
+ date: 2004-11-01
8
+ summary: rq is an __experimental__ tool used to manage nfs mounted work queues
9
+ require_paths:
10
+ - lib
11
+ author: "-a"
12
+ email: ara.t.howard@noaa.gov
13
+ homepage: http://www.codeforpeople.com/lib/ruby/rq/
14
+ rubyforge_project:
15
+ description: "rq is an __experimental__ tool used to manage nfs mounted work queues. multiple instances of rq running from multiples hosts can work from these queues to distribute processing load to 'n' nodes - bringing many dozens of otherwise powerful cpus to their knees with a single blow. clearly this software should be kept out of the hands of radicals, SETI enthusiasts, and one mr. jeff safran. rq operates in one of the modes create, submit, feed, list, delete, query, snapshot, or help. depending on the mode of operation and the options used the meaning of mode_args may change, sometime wildly and unpredictably (i jest, of course)."
16
+ autorequire: rq
17
+ default_executable:
18
+ bindir: bin
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ -
23
+ - ">"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.0.0
26
+ version:
27
+ platform: ruby
28
+ files:
29
+ - bin
30
+ - lib
31
+ - white_box
32
+ - install.rb
33
+ - DEPENDS
34
+ - HISTORY
35
+ - README
36
+ - TODO
37
+ - VERSION
38
+ - rdoc.cmd
39
+ - rq
40
+ - rq.help
41
+ - rq.gemspec
42
+ - bin/rq-0.1.7
43
+ - bin/rq
44
+ - lib/rq-0.1.7
45
+ - lib/rq.rb
46
+ - lib/rq-0.1.7.rb
47
+ - lib/rq-0.1.7/jobqueue.rb
48
+ - lib/rq-0.1.7/job.rb
49
+ - lib/rq-0.1.7/jobrunnerdaemon.rb
50
+ - lib/rq-0.1.7/jobrunner.rb
51
+ - lib/rq-0.1.7/sleepcycle.rb
52
+ - lib/rq-0.1.7/logging.rb
53
+ - lib/rq-0.1.7/qdb.rb
54
+ - lib/rq-0.1.7/util.rb
55
+ - lib/rq-0.1.7/usage.rb
56
+ - lib/rq-0.1.7/deleter.rb
57
+ - lib/rq-0.1.7/feeder.rb
58
+ - lib/rq-0.1.7/updater.rb
59
+ - lib/rq-0.1.7/mainhelper.rb
60
+ - lib/rq-0.1.7/creator.rb
61
+ - lib/rq-0.1.7/submitter.rb
62
+ - lib/rq-0.1.7/lister.rb
63
+ - lib/rq-0.1.7/querier.rb
64
+ - lib/rq-0.1.7/statuslister.rb
65
+ - lib/rq-0.1.7/executor.rb
66
+ - lib/rq-0.1.7/configurator.rb
67
+ - lib/rq-0.1.7/snapshotter.rb
68
+ - lib/rq-0.1.7/locker.rb
69
+ - lib/rq-0.1.7/backer.rb
70
+ - lib/rq-0.1.7/refresher.rb
71
+ - lib/rq-0.1.7/configfile.rb
72
+ - lib/rq-0.1.7/defaultconfig.txt
73
+ - white_box/rq_killer
74
+ - white_box/crontab
75
+ - white_box/killrq
76
+ test_files: []
77
+ rdoc_options:
78
+ - "--main"
79
+ - README
80
+ extra_rdoc_files:
81
+ - README
82
+ executables:
83
+ - rq
84
+ extensions: []
85
+ requirements: []
86
+ dependencies:
87
+ - !ruby/object:Gem::Dependency
88
+ name: arrayfields
89
+ version_requirement:
90
+ version_requirements: !ruby/object:Gem::Version::Requirement
91
+ requirements:
92
+ -
93
+ - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: 0.0.0
96
+ version:
97
+ - !ruby/object:Gem::Dependency
98
+ name: sqlite-ruby
99
+ version_requirement:
100
+ version_requirements: !ruby/object:Gem::Version::Requirement
101
+ requirements:
102
+ -
103
+ - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: 0.0.0
106
+ version:
107
+ - !ruby/object:Gem::Dependency
108
+ name: lockfile
109
+ version_requirement:
110
+ version_requirements: !ruby/object:Gem::Version::Requirement
111
+ requirements:
112
+ -
113
+ - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: 0.0.0
116
+ version:
117
+ - !ruby/object:Gem::Dependency
118
+ name: posixlock
119
+ version_requirement:
120
+ version_requirements: !ruby/object:Gem::Version::Requirement
121
+ requirements:
122
+ -
123
+ - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 0.0.0
126
+ version: