sidetiq 0.4.0.rc3 → 0.4.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/sidetiq/schedulable.rb +0 -7
- data/lib/sidetiq/version.rb +1 -1
- data/lib/sidetiq/views/sidetiq.erb +5 -3
- 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: ead5ee1ca94f1b13e80313b412a3814dd7d281a2
|
4
|
+
data.tar.gz: f8e034df1e712bcc81b3f203933c847d0ad4511b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8df443743d71f5c258ece23af07a1f535d248d6ded6bfacf9b45c57a524ff4fa49d6a8be22960e83fc08c8aefcec556e644a9c26055b18e143a7b12a6d6c9f5a
|
7
|
+
data.tar.gz: 30fe0fe1972f3cd6d65836c62c18d711da3a8364aa0c37a725d465320593ed899337b0096fc78ce47e9acca6f2783c9f8252a4dbd7eb7cf406609dde1ac14c4a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
0.4.0
|
2
2
|
-----
|
3
3
|
|
4
|
+
- Fix bug where web dashboard wouldn't render when in presence of a
|
5
|
+
worker without a schedule.
|
6
|
+
- Schedulable#tiq deprecation warning removed.
|
4
7
|
- Schedules are now stored on the workers directly instead of in a
|
5
8
|
pseudo-global, mutable Hash.
|
6
9
|
- Clock now start looping automatically if `Sidekiq.server?` returns true.
|
data/lib/sidetiq/schedulable.rb
CHANGED
@@ -34,13 +34,6 @@ module Sidetiq
|
|
34
34
|
get_timestamp "next"
|
35
35
|
end
|
36
36
|
|
37
|
-
def tiq(*args, &block) # :nodoc:
|
38
|
-
warn "DEPRECATION WARNING: Sidetiq::Schedulable#tiq" <<
|
39
|
-
" is deprecated and will be removed. Use" <<
|
40
|
-
" Sidetiq::Schedulable#recurrence instead."
|
41
|
-
recurrence(*args, &block)
|
42
|
-
end
|
43
|
-
|
44
37
|
def recurrence(options = {}, &block) # :nodoc:
|
45
38
|
schedule.instance_eval(&block)
|
46
39
|
schedule.set_options(options)
|
data/lib/sidetiq/version.rb
CHANGED
@@ -26,7 +26,12 @@
|
|
26
26
|
<a href="<%= "#{root_path}sidetiq/#{worker.name}/schedule" %>"><%= worker.name %></a>
|
27
27
|
<td><%= worker.get_sidekiq_options["queue"] %></td>
|
28
28
|
<td>
|
29
|
+
<% @next = schedule.next_occurrence(@time) %>
|
30
|
+
<% if @next.nil? %>
|
31
|
+
No schedule
|
32
|
+
<% else %>
|
29
33
|
<%= relative_time(schedule.next_occurrence(@time)) %>
|
34
|
+
<% end %>
|
30
35
|
</td>
|
31
36
|
<td>
|
32
37
|
<form action="<%= "#{root_path}sidetiq/#{worker.name}/trigger" %>" method="post">
|
@@ -39,9 +44,6 @@
|
|
39
44
|
<% else %>
|
40
45
|
<div class="alert alert-success">No recurring jobs found.</div>
|
41
46
|
<% end %>
|
42
|
-
|
43
47
|
</div>
|
44
48
|
</div>
|
45
49
|
</div>
|
46
|
-
|
47
|
-
|