Compare commits
10 Commits
Author | SHA1 | Date |
---|---|---|
Tobias Svensson | 261f213d89 | |
Tobias Svensson | 2ea3c60a62 | |
Tobias Svensson | bb01562c49 | |
Tobias Svensson | c5f576d560 | |
Tobias Svensson | 8e152347c0 | |
Tobias Svensson | 3ef3606492 | |
Tobias Svensson | aa1d919637 | |
Tobias Svensson | fc8352027c | |
Tobias Svensson | 77ce954ea6 | |
Teresa Martyny | 59a217598a |
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -1,3 +1,15 @@
|
|||
0.7.2
|
||||
-----
|
||||
|
||||
- Fix NoMethodError with nil value in variable in web
|
||||
dashboard [tmartyny]
|
||||
|
||||
0.7.1
|
||||
-----
|
||||
|
||||
- Remove unnecessary linking to Sidekiq::Manager
|
||||
- Updated gem dependencies
|
||||
|
||||
0.7.0
|
||||
-----
|
||||
|
||||
|
|
16
README.md
16
README.md
|
@ -1,13 +1,17 @@
|
|||
![Sidetiq](http://f.cl.ly/items/1W3k0R2V2x3n3S1t1M0B/sidetiq.png)
|
||||
=========
|
||||
|
||||
[![Build Status](https://travis-ci.org/tobiassvn/sidetiq.png)](https://travis-ci.org/tobiassvn/sidetiq)
|
||||
[![Dependency Status](https://gemnasium.com/tobiassvn/sidetiq.png)](https://gemnasium.com/tobiassvn/sidetiq)
|
||||
[![Coverage Status](https://coveralls.io/repos/tobiassvn/sidetiq/badge.png)](https://coveralls.io/r/tobiassvn/sidetiq)
|
||||
[![Code Climate](https://codeclimate.com/github/tobiassvn/sidetiq.png)](https://codeclimate.com/github/tobiassvn/sidetiq)
|
||||
[![Build Status](https://travis-ci.org/endofunky/sidetiq.png)](https://travis-ci.org/endofunky/sidetiq)
|
||||
[![Dependency Status](https://gemnasium.com/endofunky/sidetiq.png)](https://gemnasium.com/endofunky/sidetiq)
|
||||
[![Coverage Status](https://coveralls.io/repos/github/endofunky/sidetiq/badge.svg?branch=master)](https://coveralls.io/github/endofunky/sidetiq?branch=master)
|
||||
[![Code Climate](https://codeclimate.com/github/endofunky/sidetiq.png)](https://codeclimate.com/github/endofunky/sidetiq)
|
||||
|
||||
Recurring jobs for [Sidekiq](http://mperham.github.com/sidekiq/).
|
||||
|
||||
## NO LONGER MAINTAINED!!!
|
||||
|
||||
Due to changes in Sidekiq (which would necessitate an almost complete rewrite) and the move to the ActiveJob abstraction this library is no longer maintained. Please refer to alternatives instead.
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
|
@ -26,7 +30,7 @@ Sidetiq provides a simple API for defining recurring workers for Sidekiq.
|
|||
Usage
|
||||
-----
|
||||
|
||||
Please see the [Sidetiq wiki](http://github.com/tobiassvn/sidetiq/wiki) for more detailed
|
||||
Please see the [Sidetiq wiki](http://github.com/endofunky/sidetiq/wiki) for more detailed
|
||||
documentation and usage notes.
|
||||
|
||||
License
|
||||
|
@ -37,5 +41,5 @@ Sidetiq is released under the 3-clause BSD. See LICENSE for further details.
|
|||
Author
|
||||
------
|
||||
|
||||
Tobias Svensson, [@tobiassvn](https://twitter.com/tobiassvn), [http://github.com/tobiassvn](http://github.com/tobiassvn)
|
||||
Tobias Svensson, [@endofunky](https://twitter.com/endofunky), [http://github.com/endofunky](http://github.com/endofunky)
|
||||
|
||||
|
|
|
@ -7,15 +7,7 @@ module Sidetiq
|
|||
|
||||
def initialize(*args, &block)
|
||||
log_call "initialize"
|
||||
|
||||
super
|
||||
|
||||
# Link to Sidekiq::Manager when running in server-mode. In most
|
||||
# cases the supervisor is booted before Sidekiq has launched
|
||||
# fully, so defer this.
|
||||
if Sidekiq.server?
|
||||
after(0.1) { link_to_sidekiq_manager }
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -24,13 +16,6 @@ module Sidetiq
|
|||
log_call "shutting down ..."
|
||||
end
|
||||
|
||||
def link_to_sidekiq_manager
|
||||
Sidekiq::CLI.instance.launcher.manager.link(current_actor)
|
||||
rescue NoMethodError
|
||||
debug "Can't link #{self.class.name}. Sidekiq::Manager not running. Retrying in 5 seconds ..."
|
||||
after(5) { link_to_sidekiq_manager }
|
||||
end
|
||||
|
||||
def log_call(call)
|
||||
info "#{self.class.name} id: #{object_id} #{call}"
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ module Sidetiq
|
|||
MINOR = 7
|
||||
|
||||
# Public: Sidetiq patch level.
|
||||
PATCH = 0
|
||||
PATCH = 2
|
||||
|
||||
# Public: Sidetiq version suffix.
|
||||
SUFFIX = nil
|
||||
|
|
|
@ -23,10 +23,11 @@
|
|||
|
||||
<% @history.each do |entry| %>
|
||||
<% entry = Sidekiq.load_json(entry).symbolize_keys %>
|
||||
<% runtime = entry[:runtime]&.round(3) || "N/A" %>
|
||||
<tr class="<%= 'error' if entry[:status] == 'failure' %>">
|
||||
<td><%= entry[:status].capitalize %></td>
|
||||
<td><%= Time.parse(entry[:timestamp]).strftime("%m/%d/%Y %I:%M:%S%p") %></td>
|
||||
<td><%= entry[:runtime].round(3) %> s</td>
|
||||
<td><%= runtime %> s</td>
|
||||
<td>
|
||||
<% if entry[:status] == 'failure' %>
|
||||
<a class="backtrace" href="#" onclick="$(this).next().toggle(); return false">
|
||||
|
|
|
@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|||
gem.email = ["tob@tobiassvensson.co.uk"]
|
||||
gem.description = "Recurring jobs for Sidekiq"
|
||||
gem.summary = gem.description
|
||||
gem.homepage = "http://github.com/tobiassvn/sidetiq"
|
||||
gem.homepage = "http://github.com/endofunky/sidetiq"
|
||||
gem.license = "3-clause BSD"
|
||||
|
||||
gem.files = `git ls-files`.split($/)
|
||||
|
@ -19,9 +19,9 @@ Gem::Specification.new do |gem|
|
|||
gem.require_paths = ["lib"]
|
||||
gem.extensions = []
|
||||
|
||||
gem.add_dependency 'sidekiq', '>= 4.0.0'
|
||||
gem.add_dependency 'sidekiq', '>= 4.1.0'
|
||||
gem.add_dependency 'celluloid', '>= 0.17.3'
|
||||
gem.add_dependency 'ice_cube', '~> 0.13.2'
|
||||
gem.add_dependency 'ice_cube', '~> 0.14.0'
|
||||
|
||||
gem.add_development_dependency 'rake'
|
||||
gem.add_development_dependency 'sinatra'
|
||||
|
|
Loading…
Reference in New Issue