sidekiq-scheduler 2.1.2 → 2.1.3

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: ae34c739c46b8fbf1ff40509dbdd8cca94f736c5
4
- data.tar.gz: 4bfb4cc75fc85ee2cd5a3fee274820f14241f8eb
3
+ metadata.gz: fea965b75dc070e03cedb07b7f52370179d48a92
4
+ data.tar.gz: a34c581f6784e54be8fd7ec6839ce3daf5244deb
5
5
  SHA512:
6
- metadata.gz: a922a153b0c8c6fbfc894557f5f90564a0120c66205e6ffffd9f520aa9fd1a4f4e40e4c677c20830e5224f1c9767daf757c1adcb8ed1dcf2ebcb21d0e57bf749
7
- data.tar.gz: 40ad60c1df2b902a748d297a89d5571839f074e7407efc3f44d28a7f1cc240049d1e9cdd7e4ce40bedc485766aec5dfd799596821a3a48ffa812fb868ad9095c
6
+ metadata.gz: 38c0503e48f845aefb66cb16d7eef8acc1d6e93865b40428deac1d191e13c2e4d5b7e9635a7a0e21f666d7afbbcacc015e453aa0b89b3c06e5e11ecf8e1b27ff
7
+ data.tar.gz: fe40a0493a16ac5b3f2de556ae50f05fa58a091239d4813f455bbee5f6dae90f0de093d43bcea955f21fdce861af9ab671167e3b368137e26dcf22cd86b4cab0
data/README.md CHANGED
@@ -282,6 +282,13 @@ from the `config.time_zone` value, make sure it's the right format, e.g. with:
282
282
  ActiveSupport::TimeZone.find_tzinfo(Rails.configuration.time_zone).name
283
283
  ```
284
284
 
285
+ ## Notes about running on Multiple Hosts
286
+
287
+ `cron` and `at` jobs are pushed once despite the number of `sidekiq-scheduler` running instances,
288
+ assumming that time deltas between hosts is lesser than 24 hours.
289
+
290
+ `every`, `interval` and `in` jobs will be pushed once per host.
291
+
285
292
  ## Sidekiq Web Integration
286
293
 
287
294
  sidekiq-scheduler provides an extension to the Sidekiq web interface that adds a `Recurring Jobs` page.
@@ -290,16 +297,13 @@ sidekiq-scheduler provides an extension to the Sidekiq web interface that adds a
290
297
  # config.ru
291
298
 
292
299
  require 'sidekiq/web'
293
- require 'sidekiq-scheduler'
294
300
  require 'sidekiq-scheduler/web'
295
301
 
296
- app = Rack::Builder.new {
297
- run Sidekiq::Web
298
- }.to_app
299
-
300
- Rack::Handler::WEBrick.run app
302
+ run Sidekiq::Web
301
303
  ```
302
304
 
305
+ ![Sidekiq Web Integration](https://github.com/moove-it/sidekiq-scheduler/raw/master/images/recurring-jobs-ui-tab.png)
306
+
303
307
  ## The Spring preloader and Testing your initializer via Rails console
304
308
 
305
309
  If you're pulling in your schedule from a YML file via an initializer as shown, be aware that the Spring application preloader included with Rails will interefere with testing via the Rails console.
@@ -1,5 +1,5 @@
1
1
  module SidekiqScheduler
2
2
 
3
- VERSION = '2.1.2'
3
+ VERSION = '2.1.3'
4
4
 
5
5
  end
@@ -230,8 +230,9 @@ module Sidekiq
230
230
  end
231
231
 
232
232
  def enqueue_with_active_job(config)
233
- # TODO Does ActiveJob really need to get the config data in the `enqueue` call?
234
- initialize_active_job(config['class'], config['args']).enqueue(sanitize_job_config(config))
233
+ options = { queue: config['queue'] }
234
+
235
+ initialize_active_job(config['class'], config['args']).enqueue(options)
235
236
  end
236
237
 
237
238
  def enqueue_with_sidekiq(config)
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morton Jonuschat
8
- - Adrian Gomez
8
+ - Moove-it
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-17 00:00:00.000000000 Z
12
+ date: 2017-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie
@@ -236,9 +236,9 @@ dependencies:
236
236
  - !ruby/object:Gem::Version
237
237
  version: '0'
238
238
  description: Light weight job scheduling extension for Sidekiq that adds support for
239
- queueing items in the future.
239
+ queueinga jobs in a recurring way.
240
240
  email:
241
- - adrian_g171@hotmail.com
241
+ - sidekiq-scheduler@moove-it.com
242
242
  executables: []
243
243
  extensions: []
244
244
  extra_rdoc_files: []
@@ -259,7 +259,7 @@ files:
259
259
  - web/locales/es.yml
260
260
  - web/locales/zh-cn.yml
261
261
  - web/views/recurring_jobs.erb
262
- homepage: https://github.com/moove-it/sidekiq-scheduler
262
+ homepage: https://moove-it.github.io/sidekiq-scheduler/
263
263
  licenses:
264
264
  - MIT
265
265
  metadata: {}