resque 1.27.0 → 1.27.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of resque might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5f0cb00378f55254a8f68c68fed023ea569e1a8
4
- data.tar.gz: bf7219b392370ef84f16ab57ff3646c64544a17d
3
+ metadata.gz: 1daac3d258fab0d2df0f3b9c8fd8a65ccbc2c885
4
+ data.tar.gz: 88d64df16da1b0312bdd314f46e9a8776d787c13
5
5
  SHA512:
6
- metadata.gz: fd8e4634086ea6c5f5147799d35596924abb49a71fa1c99223017c4ade6b24b5afba32f2e70985b18af6493530fd554ecd76947a7f7ff04f32e5aeb43c707477
7
- data.tar.gz: 484db5ed7b0b3be036c9523a2720a16edaa43748a65d34a2add2932784fc37440e0922596529b229d471177c03599df65ab7d57b980b99850c39ab98dfe26e4f
6
+ metadata.gz: 834bcae49f7c471737d6ceb360162a830b403d2ca36c099cee05d5d2a8c24f163bbfeb101080042e023351a34c2007f63dd1f6e19da8847d9487d8743977029a
7
+ data.tar.gz: cf65256fb4d939ebed384ca9cd1e6a30eef611167bfaa3abeb427f79f5cf005f79c9d85146a4dbe7cec429bbdaff27c04a802c7993acbfb4477a832314f84fb2
data/HISTORY.md CHANGED
@@ -1,14 +1,36 @@
1
- ## 1.28.0 (TBD)
1
+ ## Unreleased
2
2
 
3
+ Nothing yet!
3
4
 
4
- ## 1.27.0 (2017-02-08)
5
+ ## 1.27.1 (2017-02-13)
6
+
7
+ ### Fixed
8
+ * Show actual jobs names in web view using ActiveJob (@martnst)
5
9
 
6
- * Update jQuery from 1.3.2 to 1.12.4
10
+ ## 1.27.0 (2017-02-08)
7
11
 
12
+ ### Fixed
8
13
  * Fix issue where calling Worker.find, Worker.all, or Worker.working from withing
9
14
  a running job would rewrite the PID file with the PID of the forked worker.
10
15
  This causes a change to the Worker#new API that may affect plugin
11
16
  implementations. See Worker#new and Worker#prepare for details. (@jeremywadsack)
17
+ * Workers queried out now have the correct hostname (@crazymykl)
18
+ * Fix race condition on worker startup (@stevedomin)
19
+ * No longer triggers verbose logging if env variables are not set (@ldnunes)
20
+ * resque/failed/requeue/all when using Redis::Failure::Multiple no longer raises an exception (@ale7714)
21
+ * Improve forking to avoid having a child process escape its code (@dylanahsmith)
22
+ * Workers now use server time rather than their own time to maintain heartbeats (@fw42)
23
+ * Run eager load hooks for Rails applications versioned 4.x and up (@abhi-patel)
24
+ * Fix bug when encountering an error while pruning workers (Joakim Kolsjö and Tomas Skogberg)
25
+ * Children write to PIDFILE immediately after forking, fixing issues when reconnecting to Redis is slow (@fimmtiu)
26
+
27
+ ### Changed
28
+ * Update jQuery from 1.3.2 to 1.12.4 (@chrisccerami)
29
+ * No longer user Thread.kill to stop heartbeat (@Sinjo)
30
+
31
+ ### Added
32
+ * Resque Web UI now prompts for confirmation on clearing failed jobs (Markus Olsen)
33
+ * Adds process status to DirtyExit exception when job is killed via signal (@MishaConway)
12
34
 
13
35
  ## 1.26.0 (2016-03-10)
14
36
 
@@ -195,7 +195,8 @@ We plan to provide first class `async` support in a future release.
195
195
 
196
196
  If a job raises an exception, it is logged and handed off to the
197
197
  `Resque::Failure` module. Failures are logged either locally in Redis
198
- or using some different backend.
198
+ or using some different backend. To see exceptions while developing,
199
+ use VERBOSE env variable, see details below under Logging.
199
200
 
200
201
  For example, Resque ships with Airbrake support. To configure it, put
201
202
  the following into an initialisation file or into your rake job:
@@ -56,7 +56,7 @@ module Resque
56
56
  #
57
57
  # classify('job-name') # => 'JobName'
58
58
  def classify(dashed_word)
59
- dashed_word.split('-').each { |part| part[0] = part[0].chr.upcase }.join
59
+ dashed_word.split('-').map(&:capitalize).join
60
60
  end
61
61
 
62
62
  # Tries to find a constant with the name specified in the argument string:
@@ -61,7 +61,7 @@ module Resque
61
61
 
62
62
  # make use respond like redis
63
63
  def respond_to?(method,include_all=false)
64
- @redis.respond_to?(method,include_all)
64
+ @redis.respond_to?(method,include_all) || super
65
65
  end
66
66
 
67
67
  # Get a string identifying the underlying server.
@@ -24,7 +24,7 @@
24
24
  <dd>
25
25
  <% if job['payload'] && job['payload']['class'] %>
26
26
  <a href="<%= u "failed/#{params[:queue]}?class=#{job['payload']['class']}" %>">
27
- <code><%= job['payload']['class'] %></code>
27
+ <%= partial :job_class, :job => job['payload'] %>
28
28
  </a>
29
29
  <% else %>
30
30
  <code>nil</code>
@@ -0,0 +1,6 @@
1
+ <% if job['class'] == 'ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper' %>
2
+ <code><%= job['args'].first['job_class'] %></code>
3
+ <small><a href="http://edgeguides.rubyonrails.org/active_job_basics.html" target="_blank">(via ActiveJob)</a></small>
4
+ <% else %>
5
+ <code><%= job['class'] %></code>
6
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <%= partial :job_class, :job => job['payload'] %>
2
+ <small><a class="queue time" href="<%=u "/working/#{worker}" %>"><%= job['run_at'] %></a></small>
@@ -14,7 +14,7 @@
14
14
  </tr>
15
15
  <% for job in (jobs = resque.peek(queue, start, 20)) %>
16
16
  <tr>
17
- <td class='class'><%= job['class'] %></td>
17
+ <td class='class'><%= partial :job_class, :job => job %></td>
18
18
  <td class='args'><%=h job['args'].inspect %></td>
19
19
  </tr>
20
20
  <% end %>
@@ -29,8 +29,7 @@
29
29
  <td class='process'>
30
30
  <% data = worker.processing || {} %>
31
31
  <% if data['queue'] %>
32
- <code><%= data['payload']['class'] %></code>
33
- <small><a class="queue time" href="<%=u "/working/#{worker}" %>"><%= data['run_at'] %></a></small>
32
+ <%= partial :processing, :worker => worker, :job => data %>
34
33
  <% else %>
35
34
  <span class='waiting'>Waiting for a job...</span>
36
35
  <% end %>
@@ -70,8 +69,7 @@
70
69
  <td class='process'>
71
70
  <% data = worker.processing || {} %>
72
71
  <% if data['queue'] %>
73
- <code><%= data['payload']['class'] %></code>
74
- <small><a class="queue time" href="<%=u "/working/#{worker}" %>"><%= data['run_at'] %></a></small>
72
+ <%= partial :processing, :worker => worker, :job => data %>
75
73
  <% else %>
76
74
  <span class='waiting'>Waiting for a job...</span>
77
75
  <% end %>
@@ -59,8 +59,7 @@
59
59
  </td>
60
60
  <td class='process'>
61
61
  <% if job['queue'] %>
62
- <code><%= job['payload']['class'] %></code>
63
- <small><a class="queue time" href="<%=u "/working/#{worker}" %>"><%= job['run_at'] %></a></small>
62
+ <%= partial :processing, :worker => worker, :job => job %>
64
63
  <% else %>
65
64
  <span class='waiting'>Waiting for a job...</span>
66
65
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = VERSION = '1.27.0'
2
+ Version = VERSION = '1.27.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0
4
+ version: 1.27.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-02-08 00:00:00.000000000 Z
13
+ date: 2017-02-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: redis-namespace
@@ -144,11 +144,13 @@ files:
144
144
  - lib/resque/server/views/failed.erb
145
145
  - lib/resque/server/views/failed_job.erb
146
146
  - lib/resque/server/views/failed_queues_overview.erb
147
+ - lib/resque/server/views/job_class.erb
147
148
  - lib/resque/server/views/key_sets.erb
148
149
  - lib/resque/server/views/key_string.erb
149
150
  - lib/resque/server/views/layout.erb
150
151
  - lib/resque/server/views/next_more.erb
151
152
  - lib/resque/server/views/overview.erb
153
+ - lib/resque/server/views/processing.erb
152
154
  - lib/resque/server/views/queues.erb
153
155
  - lib/resque/server/views/stats.erb
154
156
  - lib/resque/server/views/workers.erb