coney_island 0.11.5 → 0.11.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coney_island.rb +0 -4
- data/lib/coney_island/submitter.rb +0 -21
- data/lib/coney_island/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9f87c4a033c181b2e41b484646d6f30f5997ddb
|
4
|
+
data.tar.gz: e36d98e987299873a92e92dff7e6c01a6f190296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e1bf6f004482bf93637d6f2df2088bf20b694c9758fc84d2fec3d59020e67afd5eb2e1c51ece7cc65127a5edfb5a27c20cff30386befe4606652efbd1dfc52c
|
7
|
+
data.tar.gz: aa63a403b99836e3403e5ccd64e69368d9f3b41e7e73754c99475a3c79b5a6e168053975b581757ed974679e7bdf7dff234004167b6116d2b456b4415c1c1e91
|
data/lib/coney_island.rb
CHANGED
@@ -95,10 +95,6 @@ module ConeyIsland
|
|
95
95
|
ConeyIsland::Submitter.flush_jobs
|
96
96
|
end
|
97
97
|
|
98
|
-
def self.run_with_em(klass, method, *args)
|
99
|
-
ConeyIsland::Submitter.run_with_em(klass, method, *args)
|
100
|
-
end
|
101
|
-
|
102
98
|
def self.submit(*args)
|
103
99
|
ConeyIsland::Submitter.submit(*args)
|
104
100
|
end
|
@@ -212,27 +212,6 @@ module ConeyIsland
|
|
212
212
|
RequestStore.store[:cache_jobs] = false
|
213
213
|
end
|
214
214
|
|
215
|
-
def self.run_with_em(klass, method, *args)
|
216
|
-
ConeyIsland.stop_running_inline
|
217
|
-
EventMachine.run do
|
218
|
-
self.cache_jobs
|
219
|
-
klass.send(method, *args)
|
220
|
-
self.flush_jobs
|
221
|
-
self.publisher_shutdown
|
222
|
-
end
|
223
|
-
ConeyIsland.run_inline
|
224
|
-
end
|
225
|
-
|
226
|
-
def self.publisher_shutdown
|
227
|
-
EventMachine.add_periodic_timer(1) do
|
228
|
-
if RequestStore.store[:jobs] && RequestStore.store[:jobs].length > 0
|
229
|
-
Rails.logger.info("Waiting for #{RequestStore.store[:jobs].length} publishes to finish")
|
230
|
-
else
|
231
|
-
Rails.logger.info("Shutting down coney island publisher")
|
232
|
-
EventMachine.stop
|
233
|
-
end
|
234
|
-
end
|
235
|
-
end
|
236
215
|
end
|
237
216
|
end
|
238
217
|
|
data/lib/coney_island/version.rb
CHANGED