sidekiq-cron 1.2.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Changes.md +107 -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 +13 -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: 30fae647f59944364617d071e3e37b7d2d4b8b8153d4cee4aa05a1cfbfe387e5
|
4
|
+
data.tar.gz: c7c6ef11245172570823464e660ce427657ec676e2593b75705deddfed744d5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 161fe2edda57f601085515076a2a6375bcf97018124af3993de70fe16624d7b0fcaeefb1cfeac4d0ae5dbc6292ee299faf67a443b7fd8f8e044ed58f118e98f3
|
7
|
+
data.tar.gz: b16fb8618c719b9e9c0d39df2e1b6eb6bbaefe8ce80d1d27fea75f84c9ffc8c3fc9df8860b3409bd3d65eb2b01b3c25917a961ea9911609ed8cff5e6912e2f70
|
data/Changes.md
CHANGED
@@ -1,82 +1,107 @@
|
|
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
|
-
- cron
|
31
|
-
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
-
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
|
51
|
-
|
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.0
|
6
|
+
|
7
|
+
- Integrate Sidekiq v6.5 breaking changes (https://github.com/ondrejbartas/sidekiq-cron/pull/331)
|
8
|
+
- Add portuguese translations (https://github.com/ondrejbartas/sidekiq-cron/pull/332)
|
9
|
+
|
10
|
+
## 1.4.0
|
11
|
+
|
12
|
+
- Fix buttons order in job show view (https://github.com/ondrejbartas/sidekiq-cron/pull/302)
|
13
|
+
- Dark Mode support in UI (https://github.com/ondrejbartas/sidekiq-cron/pull/317/282)
|
14
|
+
- Remove invocation of deprecated Redis functionality (https://github.com/ondrejbartas/sidekiq-cron/pull/318)
|
15
|
+
- Internal code cleanup (https://github.com/ondrejbartas/sidekiq-cron/pull/317)
|
16
|
+
- Optimize gem size (https://github.com/ondrejbartas/sidekiq-cron/pull/322)
|
17
|
+
- Fix "Show All" button on cron jobs view with Sidekiq 6.3.0+ (https://github.com/ondrejbartas/sidekiq-cron/pull/321)
|
18
|
+
- Documentation updates
|
19
|
+
|
20
|
+
## 1.3.0
|
21
|
+
|
22
|
+
- Add confirmation dialog when enquing jobs from UI
|
23
|
+
- Start to support Sidekiq `average_scheduled_poll_interval` option (replaced `poll_interval`)
|
24
|
+
- Enable to use latest fugit to parse cron notation alowing use of natural language (ie `"every 30 minutes"`)
|
25
|
+
- Fix deprecation warning for Redis 4.6.x
|
26
|
+
- Fix different response from Redis#exists in different Redis versions
|
27
|
+
- All PRs:
|
28
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/275
|
29
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/287
|
30
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/309
|
31
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/299
|
32
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/314
|
33
|
+
- https://github.com/ondrejbartas/sidekiq-cron/pull/288
|
34
|
+
|
35
|
+
## 1.2.0
|
36
|
+
|
37
|
+
- Updated readme
|
38
|
+
- Fix problem with Sidekiq::Launcher and requiring it when not needed
|
39
|
+
- Better patching of Sidekiq::Launcher
|
40
|
+
- Fixed Dockerfile
|
41
|
+
|
42
|
+
## 1.1.0
|
43
|
+
|
44
|
+
- Updated readme
|
45
|
+
- Fix unit tests - changed argument error when getting invalid cron format
|
46
|
+
- When fallbacking old job enqueued time use `Time.parse` without format (so ruby can decide best method to parse it)
|
47
|
+
- Add option `date_as_argument` which will add to your job arguments on last place `Time.now.to_f` when it was eneuqued
|
48
|
+
- Add option `description` which will allow you to add notes to your jobs so in web view you can see it
|
49
|
+
- Fixed translations
|
50
|
+
|
51
|
+
## 1.0.4
|
52
|
+
|
53
|
+
- Fix problem with upgrading to 1.0.x - parsing last enqued time didn't count with old time format stored in Redis
|
54
|
+
|
55
|
+
## 1.0.0
|
56
|
+
|
57
|
+
- 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)
|
58
|
+
- Better working with Timezones
|
59
|
+
- Translations for JA, zh-CN
|
60
|
+
- Cron without timezone are considered as UTC, to add Timezone to cron use format `* * * * * Europe/Berlin`
|
61
|
+
- 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)
|
62
|
+
|
63
|
+
## 0.6.0
|
64
|
+
|
65
|
+
- Set poller to check jobs every 30s by default (possible to override by `Sidekiq.options[:poll_interval] = 10`)
|
66
|
+
- Add group actions (enqueue, enable, disable, delete) all in web view
|
67
|
+
- Fix poller to enqueu all jobs in poll start time
|
68
|
+
- Add performance test for enqueue of jobs (10 000 jobs in less than 19s)
|
69
|
+
- Fix problem with default queue
|
70
|
+
- Remove redis-namespace from dependencies
|
71
|
+
- Update ruby versions in travis
|
72
|
+
|
73
|
+
## 0.5.0
|
74
|
+
|
75
|
+
- Add Docker support
|
76
|
+
- All crons are now evaluated in UTC
|
77
|
+
- Fix rufus scheduler & timezones problems
|
78
|
+
- Add support for Sidekiq 4.2.1
|
79
|
+
- Fix readme
|
80
|
+
- Add Russian locale
|
81
|
+
- User Rack.env in tests
|
82
|
+
- Faster enqueue of jobs
|
83
|
+
- Permit to use ActiveJob::Base.queue_name_delimiter
|
84
|
+
- Fix problem with multiple times enqueue #84
|
85
|
+
- Fix problem with enqueue of unknown class
|
86
|
+
|
87
|
+
## 0.4.0
|
88
|
+
|
89
|
+
- Enable to work with Sidekiq >= 4.0.0
|
90
|
+
- Fix readme
|
91
|
+
|
92
|
+
## 0.3.1
|
93
|
+
|
94
|
+
- Add CSRF tags to forms so it will work with Sidekiq >= 3.4.2
|
95
|
+
- Remove Tilt dependency
|
96
|
+
|
97
|
+
## 0.3.0
|
98
|
+
|
99
|
+
- Suport for Active Job
|
100
|
+
- Sidekiq cron web ui needs to be loaded by: require 'sidekiq/cron/web'
|
101
|
+
- Add load_from_hash! and load_from_array! which cleanup jobs before adding new ones
|
102
|
+
|
103
|
+
## 0.1.1
|
104
|
+
|
105
|
+
- Add Web front-end with enabled/disable job, enqueue now, delete job
|
106
|
+
- Add cron poller - enqueue cron jobs
|
107
|
+
- 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
|