resque-pool-lifeguard 0.2.1 → 0.3.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9357e07c724241fcbdca59d30798f26a3b2311ff
|
|
4
|
+
data.tar.gz: b500e0af86817f6b09602f7afe4cd8a05bcf9415
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3602f352877f7b97e5546eedc716746a452c3d83d14d36118e99722f841feb6f0766327bc5011639e7322cd767cc6dbb5cce04acd4bb176eae887b4e1055f5ef
|
|
7
|
+
data.tar.gz: bc862d666e2966aa6cbd486bcedfeddce2ea24ff4255dd625bfaa3bc6bff897afef0e70d6bebe19a29f1c2f7148055ba25b4511bdfa270dc743b362add71d031
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Resque::Pool::Lifeguard [](https://travis-ci.org/crazymykl/resque-pool-lifeguard)
|
|
1
|
+
# Resque::Pool::Lifeguard [](https://travis-ci.org/crazymykl/resque-pool-lifeguard) [](https://dependencyci.com/github/crazymykl/resque-pool-lifeguard)
|
|
2
2
|
|
|
3
3
|
Resque pool is a great way to manage a set of resque workers. However, sometimes one wants to spin up a bunch of workers temporarily, or to conserve resources during times of heavy load.
|
|
4
4
|
|
|
@@ -19,6 +19,13 @@ module Resque
|
|
|
19
19
|
redirect u :pools
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
app.post '/pools/:host/forget' do
|
|
23
|
+
host = params[:host]
|
|
24
|
+
|
|
25
|
+
Lifeguard.new(hostname: host).reset!
|
|
26
|
+
redirect u :pools
|
|
27
|
+
end
|
|
28
|
+
|
|
22
29
|
app.get "/pools.poll" do
|
|
23
30
|
content_type "text/plain"
|
|
24
31
|
@polling = true
|
|
@@ -17,7 +17,11 @@ form.queues input[type="number"] {
|
|
|
17
17
|
|
|
18
18
|
<% pools.each do |host, pool| %>
|
|
19
19
|
<% if pools.length > 1 %>
|
|
20
|
-
<h2 class='hostname'><%= host
|
|
20
|
+
<h2 class='hostname'><%= host %>
|
|
21
|
+
<form class='forget host' action="<%= u "/pools/#{host}/forget" %>" method="POST">
|
|
22
|
+
<input type="submit" value="Forget">
|
|
23
|
+
</form>
|
|
24
|
+
</h2>
|
|
21
25
|
<% end %>
|
|
22
26
|
<table class='pool'>
|
|
23
27
|
<tr>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: resque-pool-lifeguard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike MacDonald
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: resque
|
|
@@ -151,8 +151,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
151
151
|
version: '0'
|
|
152
152
|
requirements: []
|
|
153
153
|
rubyforge_project:
|
|
154
|
-
rubygems_version: 2.
|
|
154
|
+
rubygems_version: 2.5.2
|
|
155
155
|
signing_key:
|
|
156
156
|
specification_version: 4
|
|
157
157
|
summary: Adds live GUI queue/worker management to resque-pool
|
|
158
158
|
test_files: []
|
|
159
|
+
has_rdoc:
|