coney_island 0.2 → 0.5

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: 309bbb7dab07673516758e1504b03c2493519b68
4
- data.tar.gz: a16952aaf3eb22fc693ad10dbf82c47fb6cb7a7a
3
+ metadata.gz: a26ad1b67c4398ff19bfa0a046baad39b2835239
4
+ data.tar.gz: ddf7ec8905fbe74bc34da0194e6b393bc70434c9
5
5
  SHA512:
6
- metadata.gz: 888ba15af4954645168be33f06b4740b5752c4f5cf1ec98bace12bb993f787172af74ead8dd584d8694c7078585fce9f3f236f4da8528f5ca73d17e5f87d9848
7
- data.tar.gz: 92cb75fcf9381005c57a312fbf7e7ad9ebb1523aaa9f385bcbb3acd7b83dfdda0bcc4a5c8f38a4e7412aa88e2d6ef041db1a2eb7876506de81308186a87ba6a0
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
- self.handle_connection unless @run_inline
23
- begin
24
- if :all_cached_jobs == args
25
- Rails.logger.info("ConeyIsland::Submitter.submit! about to iterate over this many jobs: #{RequestStore.store[:jobs].length}")
26
- RequestStore.store[:jobs].each do |job_id,job_args|
27
- self.publish_job(job_args,job_id)
28
- end
29
- else
30
- self.publish_job(args)
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
- rescue Exception => e
33
- ConeyIsland.poke_the_badger(e,{
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
 
@@ -1,3 +1,3 @@
1
1
  module ConeyIsland
2
- VERSION = "0.2"
2
+ VERSION = "0.5"
3
3
  end
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.2'
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: 2014-12-03 00:00:00.000000000 Z
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.2.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
@@ -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