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 +4 -4
- data/README.md +10 -6
- data/lib/sidekiq-scheduler/version.rb +1 -1
- data/lib/sidekiq/scheduler.rb +3 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fea965b75dc070e03cedb07b7f52370179d48a92
|
4
|
+
data.tar.gz: a34c581f6784e54be8fd7ec6839ce3daf5244deb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
data/lib/sidekiq/scheduler.rb
CHANGED
@@ -230,8 +230,9 @@ module Sidekiq
|
|
230
230
|
end
|
231
231
|
|
232
232
|
def enqueue_with_active_job(config)
|
233
|
-
|
234
|
-
|
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.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Morton Jonuschat
|
8
|
-
-
|
8
|
+
- Moove-it
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
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
|
-
|
239
|
+
queueinga jobs in a recurring way.
|
240
240
|
email:
|
241
|
-
-
|
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://
|
262
|
+
homepage: https://moove-it.github.io/sidekiq-scheduler/
|
263
263
|
licenses:
|
264
264
|
- MIT
|
265
265
|
metadata: {}
|