sidekiq-cron 1.2.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Changes.md +111 -82
- data/Gemfile +1 -30
- data/README.md +154 -106
- data/Rakefile +3 -42
- data/lib/sidekiq/cron/job.rb +38 -17
- data/lib/sidekiq/cron/locales/en.yml +2 -0
- data/lib/sidekiq/cron/locales/pt.yml +22 -0
- data/lib/sidekiq/cron/poller.rb +17 -5
- data/lib/sidekiq/cron/version.rb +7 -0
- data/lib/sidekiq/cron/views/cron.erb +19 -13
- data/lib/sidekiq/cron/views/cron_show.erb +8 -8
- data/lib/sidekiq/cron/web.rb +1 -7
- data/lib/sidekiq/cron/web_extension.rb +2 -12
- data/sidekiq-cron.gemspec +25 -113
- data/test/integration/performance_test.rb +3 -4
- data/test/test_helper.rb +10 -23
- data/test/unit/job_test.rb +104 -4
- data/test/unit/poller_test.rb +1 -3
- data/test/unit/web_extension_test.rb +38 -38
- metadata +47 -195
- data/.document +0 -5
- data/.travis.yml +0 -18
- data/Dockerfile +0 -32
- data/VERSION +0 -1
- data/config.ru +0 -14
- data/docker-compose.yml +0 -23
- data/examples/web-cron-ui.png +0 -0
- data/lib/sidekiq/cron/views/cron.slim +0 -71
- data/lib/sidekiq/cron/views/cron_show.slim +0 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2d138bcaa8a86a88e84e5cd8b5b9188e68217e268a466aef03f2b5dd30a7226d
|
4
|
+
data.tar.gz: 8cae5daa6693161b48b71b40607a0c8182764a82ffc3efd5eb8fd7bd0df65da7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dd9f32211d51bbd71fadbd36b30970193fc725408207fe255ff58f88b56dc484815a0f52c788acebbcc6230665cf7c02ccdbd4f7425dd4d9414cd8dd098dbf7
|
7
|
+
data.tar.gz: 73e8040c64d5de227d0077a1d95081d47140ec0481706b16c00e830f421ce8952f0fb48a991f71033c65a115dc0f29f06e2a6c56aae38565ed5dae6bfcaea14d
|
data/Changes.md
CHANGED
@@ -1,82 +1,111 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
-
|
17
|
-
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
-
|
42
|
-
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
- add
|
52
|
-
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
## 1.5.1
|
6
|
+
|
7
|
+
- Fixes an issue that prevented the gem to work in previous Sidekiq versions (https://github.com/ondrejbartas/sidekiq-cron/pull/335)
|
8
|
+
|
9
|
+
## 1.5.0
|
10
|
+
|
11
|
+
- Integrate Sidekiq v6.5 breaking changes (https://github.com/ondrejbartas/sidekiq-cron/pull/331)
|
12
|
+
- Add portuguese translations (https://github.com/ondrejbartas/sidekiq-cron/pull/332)
|
13
|
+
|
14
|
+
## 1.4.0
|
15
|
+
|
16
|
+
- Fix buttons order in job show view (https://github.com/ondrejbartas/sidekiq-cron/pull/302)
|
17
|
+
- Dark Mode support in UI (https://github.com/ondrejbartas/sidekiq-cron/pull/317/282)
|
18
|
+
- Remove invocation of deprecated Redis functionality (https://github.com/ondrejbartas/sidekiq-cron/pull/318)
|
19
|
+
- Internal code cleanup (https://github.com/ondrejbartas/sidekiq-cron/pull/317)
|
20
|
+
- Optimize gem size (https://github.com/ondrejbartas/sidekiq-cron/pull/322)
|
21
|
+
- Fix "Show All" button on cron jobs view with Sidekiq 6.3.0+ (https://github.com/ondrejbartas/sidekiq-cron/pull/321)
|
22
|
+
- Documentation updates
|
23
|
+
|
24
|
+
## 1.3.0
|
25
|
+
|
26
|
+
- Add confirmation dialog when enquing jobs from UI
|
27
|
+
- Start to support Sidekiq `average_scheduled_poll_interval` option (replaced `poll_interval`)
|
28
|
+
- Enable to use latest fugit to parse cron notation alowing use of natural language (ie `"every 30 minutes"`)
|
29
|
+
- Fix deprecation warning for Redis 4.6.x
|
30
|
+
- Fix different response from Redis#exists in different Redis versions
|
31
|
+
- All PRs:
|
32
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/275
|
33
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/287
|
34
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/309
|
35
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/299
|
36
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/314
|
37
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/288
|
38
|
+
|
39
|
+
## 1.2.0
|
40
|
+
|
41
|
+
- Updated readme
|
42
|
+
- Fix problem with Sidekiq::Launcher and requiring it when not needed
|
43
|
+
- Better patching of Sidekiq::Launcher
|
44
|
+
- Fixed Dockerfile
|
45
|
+
|
46
|
+
## 1.1.0
|
47
|
+
|
48
|
+
- Updated readme
|
49
|
+
- Fix unit tests - changed argument error when getting invalid cron format
|
50
|
+
- When fallbacking old job enqueued time use `Time.parse` without format (so ruby can decide best method to parse it)
|
51
|
+
- Add option `date_as_argument` which will add to your job arguments on last place `Time.now.to_f` when it was eneuqued
|
52
|
+
- Add option `description` which will allow you to add notes to your jobs so in web view you can see it
|
53
|
+
- Fixed translations
|
54
|
+
|
55
|
+
## 1.0.4
|
56
|
+
|
57
|
+
- Fix problem with upgrading to 1.0.x - parsing last enqued time didn't count with old time format stored in Redis
|
58
|
+
|
59
|
+
## 1.0.0
|
60
|
+
|
61
|
+
- Use [fugit](https://github.com/floraison/fugit) instead of [rufus-scheduler](https://github.com/jmettraux/rufus-scheduler) - API of cron didn't change (rufus scheduler is using fugit)
|
62
|
+
- Better working with Timezones
|
63
|
+
- Translations for JA, zh-CN
|
64
|
+
- Cron without timezone are considered as UTC, to add Timezone to cron use format `* * * * * Europe/Berlin`
|
65
|
+
- Be aware that this release can change when your jobs are enqueued (for me it didn't change but it is in one project, in other it can shift by different timezone setup)
|
66
|
+
|
67
|
+
## 0.6.0
|
68
|
+
|
69
|
+
- Set poller to check jobs every 30s by default (possible to override by `Sidekiq.options[:poll_interval] = 10`)
|
70
|
+
- Add group actions (enqueue, enable, disable, delete) all in web view
|
71
|
+
- Fix poller to enqueu all jobs in poll start time
|
72
|
+
- Add performance test for enqueue of jobs (10 000 jobs in less than 19s)
|
73
|
+
- Fix problem with default queue
|
74
|
+
- Remove redis-namespace from dependencies
|
75
|
+
- Update ruby versions in travis
|
76
|
+
|
77
|
+
## 0.5.0
|
78
|
+
|
79
|
+
- Add Docker support
|
80
|
+
- All crons are now evaluated in UTC
|
81
|
+
- Fix rufus scheduler & timezones problems
|
82
|
+
- Add support for Sidekiq 4.2.1
|
83
|
+
- Fix readme
|
84
|
+
- Add Russian locale
|
85
|
+
- User Rack.env in tests
|
86
|
+
- Faster enqueue of jobs
|
87
|
+
- Permit to use ActiveJob::Base.queue_name_delimiter
|
88
|
+
- Fix problem with multiple times enqueue #84
|
89
|
+
- Fix problem with enqueue of unknown class
|
90
|
+
|
91
|
+
## 0.4.0
|
92
|
+
|
93
|
+
- Enable to work with Sidekiq >= 4.0.0
|
94
|
+
- Fix readme
|
95
|
+
|
96
|
+
## 0.3.1
|
97
|
+
|
98
|
+
- Add CSRF tags to forms so it will work with Sidekiq >= 3.4.2
|
99
|
+
- Remove Tilt dependency
|
100
|
+
|
101
|
+
## 0.3.0
|
102
|
+
|
103
|
+
- Suport for Active Job
|
104
|
+
- Sidekiq cron web ui needs to be loaded by: require 'sidekiq/cron/web'
|
105
|
+
- Add load_from_hash! and load_from_array! which cleanup jobs before adding new ones
|
106
|
+
|
107
|
+
## 0.1.1
|
108
|
+
|
109
|
+
- Add Web front-end with enabled/disable job, enqueue now, delete job
|
110
|
+
- Add cron poller - enqueue cron jobs
|
111
|
+
- Add cron job - save all needed data to Redis
|
data/Gemfile
CHANGED
@@ -1,32 +1,3 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
|
4
|
-
gem 'fugit', '~> 1.1'
|
5
|
-
|
6
|
-
group :development do
|
7
|
-
gem 'bundler'
|
8
|
-
gem 'simplecov'
|
9
|
-
|
10
|
-
gem 'redis-namespace', '>= 1.5.2'
|
11
|
-
gem 'shoulda-context'
|
12
|
-
|
13
|
-
gem 'rack'
|
14
|
-
gem 'rack-test'
|
15
|
-
|
16
|
-
gem 'jeweler'
|
17
|
-
|
18
|
-
gem 'minitest'
|
19
|
-
gem 'test-unit'
|
20
|
-
gem 'sdoc' # sdoc -N .
|
21
|
-
|
22
|
-
gem 'slim'
|
23
|
-
gem 'sinatra'
|
24
|
-
|
25
|
-
gem 'mocha'
|
26
|
-
gem 'coveralls'
|
27
|
-
|
28
|
-
gem 'shotgun'
|
29
|
-
|
30
|
-
gem 'guard'
|
31
|
-
gem 'guard-minitest'
|
32
|
-
end
|
3
|
+
gemspec
|