sidekiq-cron 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b058d0c5b73a34aed14caeb7f42f28160211d85c
4
- data.tar.gz: 63e67fe94aca427cb37924ef6510e255f3525a85
3
+ metadata.gz: 138133b1fec1d666fb37e05d818c29d3bdbb2e88
4
+ data.tar.gz: 465fa05142d777c9cc7b80a8838dde666f728a3e
5
5
  SHA512:
6
- metadata.gz: cbf9eb136c8490a8d8eabd88fd4709df9f157835bf5ca4decf8b847f458efed8fb148b296b268c051ad5679187f6cf70df5d6482e1c113a0ece9ad5214690a76
7
- data.tar.gz: 64baadd70d279c95b8d2381b29cd4c0f9f9097166a47f0f1b4a9cac5130943ee8041ec34b2fcdc00608fa924dfa9c6b0c5f760b169315fb5039b2c8fd81c819e
6
+ metadata.gz: 6aff8bbcf051c87169d5f22db1ab648a9bc1ae9dd2a51899a2dc56c5088f1a3738e1ce08f270c95eee8f7ca60136593ad5c3d0ce6fc9475facc388a12c6f908d
7
+ data.tar.gz: b18790878338ea67c8986d8d47cfaef509415425ecd48a2c64ed4842c01711c2226a858b14684913051e045b125dfd16cd1e91a017f958d1b4a199a7b6af59a1
data/Changes.md CHANGED
@@ -1,3 +1,28 @@
1
+ v 0.6.0
2
+ -------
3
+
4
+ - set poller to check jobs every 30s by default (possible to override by `Sidekiq.options[:poll_interval] = 10`)
5
+ - add group actions (enqueue, enable, disable, delete) all in web view
6
+ - fix poller to enqueu all jobs in poll start time
7
+ - add performance test for enqueue of jobs (10 000 jobs in less than 19s)
8
+ - fix problem with default queue
9
+ - remove redis-namespace from dependencies
10
+ - update ruby versions in travis
11
+
12
+ v 0.5.0
13
+ -------
14
+ - add docker support
15
+ - all crons are now evaluated in UTC
16
+ - fix rufus scheduler & timezones problems
17
+ - add support for sidekiq 4.2.1
18
+ - fix readme
19
+ - add Russian locale
20
+ - user Rack.env in tests
21
+ - faster enque of jobs
22
+ - permit to use ActiveJob::Base.queue_name_delimiter
23
+ - fix problem with multiple times enque #84
24
+ - fix problem with enque of unknown class
25
+
1
26
  v 0.4.0
2
27
  -------
3
28
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Sidekiq-Cron [![Gem Version](https://badge.fury.io/rb/sidekiq-cron.svg)](http://badge.fury.io/rb/sidekiq-cron) [![Build Status](https://travis-ci.org/ondrejbartas/sidekiq-cron.svg?branch=master)](https://travis-ci.org/ondrejbartas/sidekiq-cron) [![Coverage Status](https://coveralls.io/repos/ondrejbartas/sidekiq-cron/badge.svg?branch=master)](https://coveralls.io/r/ondrejbartas/sidekiq-cron?branch=master)
1
+ Sidekiq-Cron [![Gem Version](https://badge.fury.io/rb/sidekiq-cron.svg)](http://badge.fury.io/rb/sidekiq-cron) [![Build Status](https://travis-ci.org/ondrejbartas/sidekiq-cron.svg?branch=master)](https://travis-ci.org/ondrejbartas/sidekiq-cron) [![Coverage Status](https://coveralls.io/repos/ondrejbartas/sidekiq-cron/badge.svg?branch=master)](https://coveralls.io/r/ondrejbartas/sidekiq-cron?branch=master) [![Dependency Status](https://dependencyci.com/github/ondrejbartas/sidekiq-cron/badge)](https://dependencyci.com/github/ondrejbartas/sidekiq-cron)
2
2
  ================================================================================================================================================================================================================================================================================================================================================================================================================================================
3
3
 
4
4
  [![Join the chat at https://gitter.im/ondrejbartas/sidekiq-cron](https://badges.gitter.im/ondrejbartas/sidekiq-cron.svg)](https://gitter.im/ondrejbartas/sidekiq-cron?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -23,7 +23,7 @@ Requirements
23
23
  -----------------
24
24
 
25
25
  - Redis 2.8 or greater is required. (Redis 3.0.3 or greater is recommended for large scale use)
26
- - Sidekiq 4 or greater is required (for Sidekiq < 4 use version sidekiq-cron 0.3.1)
26
+ - Sidekiq 5, or 4, or 3 and greater is required (for Sidekiq < 4 use version sidekiq-cron 0.3.1)
27
27
 
28
28
  Change Log
29
29
  ----------
@@ -51,7 +51,7 @@ _Job properties_:
51
51
  ```ruby
52
52
  {
53
53
  'name' => 'name_of_job', #must be uniq!
54
- 'cron' => '1 * * * *',
54
+ 'cron' => '1 * * * *', # execute at 1 minute of every hour, ex: 12:01, 13:01, 14:01, 15:01...etc(HH:MM)
55
55
  'class' => 'MyClass',
56
56
  #OPTIONAL
57
57
  'queue' => 'name of queue',
@@ -104,7 +104,7 @@ class HardWorker
104
104
  end
105
105
  end
106
106
 
107
- Sidekiq::Cron::Job.create(name: 'Hard worker - every 5min', cron: '*/5 * * * *', class: 'HardWorker')
107
+ Sidekiq::Cron::Job.create(name: 'Hard worker - every 5min', cron: '*/5 * * * *', class: 'HardWorker') # execute at every 5 minutes, ex: 12:05, 12:10, 12:15...etc
108
108
  # => true
109
109
  ```
110
110
 
@@ -181,7 +181,7 @@ my_first_job:
181
181
  queue: hard_worker
182
182
 
183
183
  second_job:
184
- cron: "*/30 * * * *"
184
+ cron: "*/30 * * * *" # execute at every 30 minutes
185
185
  class: "HardWorker"
186
186
  queue: hard_worker_long
187
187
  args:
@@ -197,6 +197,8 @@ if File.exists?(schedule_file) && Sidekiq.server?
197
197
  end
198
198
  ```
199
199
 
200
+ or you can use for loading jobs from yml file [sidekiq-cron-tasks](https://github.com/coverhound/sidekiq-cron-tasks) which will add rake task `bundle exec rake sidekiq_cron:load` to your rails application.
201
+
200
202
  #### Finding jobs
201
203
  ```ruby
202
204
  #return array of all jobs
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -256,7 +256,7 @@ module Sidekiq
256
256
  attr_reader :last_enqueue_time, :fetch_missing_args
257
257
 
258
258
  def initialize input_args = {}
259
- args = input_args.stringify_keys
259
+ args = Hash[input_args.map{ |k, v| [k.to_s, v] }]
260
260
  @fetch_missing_args = args.delete('fetch_missing_args')
261
261
  @fetch_missing_args = true if @fetch_missing_args.nil?
262
262
 
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: sidekiq-cron 0.6.0 ruby lib
5
+ # stub: sidekiq-cron 0.6.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "sidekiq-cron"
9
- s.version = "0.6.0"
9
+ s.version = "0.6.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Ondrej Bartas"]
14
- s.date = "2017-04-18"
14
+ s.date = "2017-06-20"
15
15
  s.description = "Enables to set jobs to be run in specified time (using CRON notation)"
16
16
  s.email = "ondrej@bartas.cz"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-cron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondrej Bartas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-18 00:00:00.000000000 Z
11
+ date: 2017-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq