rufus-runner 0.0.3 → 0.1.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 657ec9bca0d1bcac7cfcc6a8d931f932275cf923
|
4
|
+
data.tar.gz: 9d1c21e0cab83276bcfb0f209fe558e2a1ab4a47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 846234048856879035880f04d35be1d728ffdd60a73850993aa4e55f70beeb66e81e469f203b9fdddeaf64d49a164877d39f35991bcc96557cc6fac62290f5a6
|
7
|
+
data.tar.gz: ec62ee1cac92d2916f749eea3708c60cd963b5fbfc27802e778c80e9c483b45e769caf61e8c71b2adf2ded521a254fad2b844aa5ce2757f827f86ac824fccbf1
|
data/README.md
CHANGED
@@ -8,6 +8,8 @@ standalone process, with job timing, logging, and safe defaults.
|
|
8
8
|
**Note: I did not write this gem, only deployed it to RubyGems. The project appears to be dead and I'll provide
|
9
9
|
support the best I can. If the original authors decide they want to take it back over, just let me know.**
|
10
10
|
|
11
|
+
Forked from: https://github.com/HouseTrip/rufus-runner
|
12
|
+
|
11
13
|
## Installation
|
12
14
|
|
13
15
|
Add this line to your application's Gemfile:
|
@@ -14,7 +14,7 @@ class Rufus::TrackingScheduler::ForkingJobRunner < Rufus::TrackingScheduler::Job
|
|
14
14
|
unless status.success?
|
15
15
|
raise UnexpectedExitStatus.new(status.exitstatus)
|
16
16
|
end
|
17
|
-
rescue Rufus::Scheduler::
|
17
|
+
rescue Rufus::Scheduler::TimeoutError
|
18
18
|
log("timed out, killing")
|
19
19
|
kill
|
20
20
|
raise
|
@@ -16,7 +16,7 @@ class Rufus::TrackingScheduler
|
|
16
16
|
|
17
17
|
def initialize(options = {})
|
18
18
|
@options = DefaultOptions.merge(options)
|
19
|
-
@scheduler = Rufus::Scheduler
|
19
|
+
@scheduler = Rufus::Scheduler.new
|
20
20
|
log('scheduler started')
|
21
21
|
end
|
22
22
|
|
@@ -100,7 +100,7 @@ class Rufus::TrackingScheduler
|
|
100
100
|
|
101
101
|
def stop_all_jobs
|
102
102
|
shutting_down!
|
103
|
-
@scheduler.jobs.
|
103
|
+
@scheduler.jobs.each do |job|
|
104
104
|
job.unschedule
|
105
105
|
end
|
106
106
|
log "all jobs unscheduled"
|
data/lib/rufus-runner/version.rb
CHANGED
data/rufus-runner.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.homepage = "http://github.com/ccallebs/rufus-runner"
|
16
16
|
|
17
17
|
gem.add_runtime_dependency 'eventmachine'
|
18
|
-
gem.add_runtime_dependency 'rufus-scheduler', '~>
|
18
|
+
gem.add_runtime_dependency 'rufus-scheduler', '~> 3.1'
|
19
19
|
|
20
20
|
gem.add_development_dependency 'rake'
|
21
21
|
gem.add_development_dependency 'rspec', '~> 2'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rufus-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Letessier
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-08-
|
12
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: '3.1'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: '3.1'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rake
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|