Compare commits

...

10 Commits

Author SHA1 Message Date
Tobias Svensson 261f213d89 Add no longer maintained warning 2017-01-31 13:08:58 +00:00
Tobias Svensson 2ea3c60a62 Fix coverage status badge [ci skip] 2016-08-15 10:31:24 +01:00
Tobias Svensson bb01562c49 Bump to v0.7.2 2016-08-15 09:16:44 +01:00
Tobias Svensson c5f576d560 Update CHANGELOG [ci skip] 2016-08-15 09:15:26 +01:00
Tobias Svensson 8e152347c0 Merge pull request #157 from tmartyny/nil-runtime
No method error raising for nil runtime
2016-08-15 09:05:53 +01:00
Tobias Svensson 3ef3606492 Bump to v0.7.1 2016-08-15 09:03:24 +01:00
Tobias Svensson aa1d919637 Remove unnecessary linking 2016-08-15 09:02:10 +01:00
Tobias Svensson fc8352027c Update dependencies 2016-08-15 09:02:00 +01:00
Tobias Svensson 77ce954ea6 Update contact details 2016-08-15 08:44:56 +01:00
Teresa Martyny 59a217598a Problem: When runtime is nil, a no method error is raised for round on nil:NilClass.
Solution: Use lonely operator to handle nil value for runtime and display N/A in these cases.
2016-04-14 20:40:12 -07:00
6 changed files with 28 additions and 26 deletions

View File

@ -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
-----

View File

@ -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)

View File

@ -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

View File

@ -8,7 +8,7 @@ module Sidetiq
MINOR = 7
# Public: Sidetiq patch level.
PATCH = 0
PATCH = 2
# Public: Sidetiq version suffix.
SUFFIX = nil

View File

@ -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">

View File

@ -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'