coney_island 0.2 → 0.5
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/coney_island/submitter.rb +24 -15
- data/lib/coney_island/version.rb +1 -1
- metadata +3 -5
- data/test/dummy/log/test.log +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a26ad1b67c4398ff19bfa0a046baad39b2835239
|
4
|
+
data.tar.gz: ddf7ec8905fbe74bc34da0194e6b393bc70434c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acb5bce0a1244a000c99dee2096c8ffcd1e66d2da05b682ab462d45e9b2ec4302dfb844ccb2b0f66a9d412c182cc24e6eade96efc6c0cddeef6be02c7c044955
|
7
|
+
data.tar.gz: 17fe8d09044f6bf4576112e3de4155a7c71b60e1b75aec2a6589ce9e3f3057eb86f1d49c09bd759a71d692bcf89b5d46084e378aa92863824f14818241a58b88
|
@@ -19,22 +19,31 @@ module ConeyIsland
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.submit!(args)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
22
|
+
if @run_inline
|
23
|
+
self.submit_all!(args)
|
24
|
+
else
|
25
|
+
self.handle_connection
|
26
|
+
begin
|
27
|
+
self.submit_all!(args)
|
28
|
+
rescue Exception => e
|
29
|
+
Rails.logger.error(e)
|
30
|
+
ConeyIsland.poke_the_badger(e,{
|
31
|
+
code_source: "ConeyIsland::Submitter.submit!",
|
32
|
+
message: "Error submitting job",
|
33
|
+
job_args: args
|
34
|
+
})
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.submit_all!(args)
|
40
|
+
if :all_cached_jobs == args
|
41
|
+
Rails.logger.info("ConeyIsland::Submitter.submit! about to iterate over this many jobs: #{RequestStore.store[:jobs].length}")
|
42
|
+
RequestStore.store[:jobs].each do |job_id,job_args|
|
43
|
+
self.publish_job(job_args,job_id)
|
31
44
|
end
|
32
|
-
|
33
|
-
|
34
|
-
code_source: "ConeyIsland::Submitter.submit!",
|
35
|
-
message: "Error submitting job",
|
36
|
-
job_args: args
|
37
|
-
})
|
45
|
+
else
|
46
|
+
self.publish_job(args)
|
38
47
|
end
|
39
48
|
end
|
40
49
|
|
data/lib/coney_island/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coney_island
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -147,7 +147,6 @@ files:
|
|
147
147
|
- test/dummy/config/routes.rb
|
148
148
|
- test/dummy/config/secrets.yml
|
149
149
|
- test/dummy/db/test.sqlite3
|
150
|
-
- test/dummy/log/test.log
|
151
150
|
- test/dummy/public/404.html
|
152
151
|
- test/dummy/public/422.html
|
153
152
|
- test/dummy/public/500.html
|
@@ -175,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
174
|
version: '0'
|
176
175
|
requirements: []
|
177
176
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.4.3
|
179
178
|
signing_key:
|
180
179
|
specification_version: 4
|
181
180
|
summary: Want guaranteed delivery between your queue and your workers using ACKs?
|
@@ -212,7 +211,6 @@ test_files:
|
|
212
211
|
- test/dummy/config/secrets.yml
|
213
212
|
- test/dummy/config.ru
|
214
213
|
- test/dummy/db/test.sqlite3
|
215
|
-
- test/dummy/log/test.log
|
216
214
|
- test/dummy/public/404.html
|
217
215
|
- test/dummy/public/422.html
|
218
216
|
- test/dummy/public/500.html
|
data/test/dummy/log/test.log
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
Failed to connecto to RabbitMQ Attempt #1 time(s), trying again in 0 seconds...
|
2
|
-
ConeyIsland::Submitter.submit! about to iterate over this many jobs: 1
|
3
|
-
Failed to connecto to RabbitMQ Attempt #1 time(s), trying again in 0 seconds...
|
4
|
-
ConeyIsland::Submitter.submit! about to iterate over this many jobs: 1
|