resque-scheduler 4.3.0 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of resque-scheduler might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +12 -0
- data/.github/funding.yml +4 -0
- data/.github/workflows/codeql-analysis.yml +59 -0
- data/.github/workflows/rubocop.yml +27 -0
- data/.github/workflows/ruby.yml +78 -0
- data/AUTHORS.md +9 -0
- data/CHANGELOG.md +510 -0
- data/Gemfile +23 -0
- data/README.md +115 -23
- data/Rakefile +2 -5
- data/lib/resque/scheduler/cli.rb +1 -0
- data/lib/resque/scheduler/configuration.rb +31 -8
- data/lib/resque/scheduler/delaying_extensions.rb +65 -18
- data/lib/resque/scheduler/env.rb +3 -7
- data/lib/resque/scheduler/lock/resilient.rb +19 -12
- data/lib/resque/scheduler/locking.rb +3 -3
- data/lib/resque/scheduler/scheduling_extensions.rb +4 -3
- data/lib/resque/scheduler/server/views/delayed.erb +4 -4
- data/lib/resque/scheduler/server/views/delayed_timestamp.erb +1 -1
- data/lib/resque/scheduler/server/views/scheduler.erb +2 -2
- data/lib/resque/scheduler/server/views/search.erb +0 -3
- data/lib/resque/scheduler/server/views/search_form.erb +1 -5
- data/lib/resque/scheduler/server.rb +1 -1
- data/lib/resque/scheduler/signal_handling.rb +2 -2
- data/lib/resque/scheduler/util.rb +1 -1
- data/lib/resque/scheduler/version.rb +1 -1
- data/lib/resque/scheduler.rb +39 -17
- data/resque-scheduler.gemspec +14 -7
- metadata +39 -27
- data/HISTORY.md +0 -310
data/HISTORY.md
DELETED
@@ -1,310 +0,0 @@
|
|
1
|
-
# Resque Scheduler History / ChangeLog / Release Notes
|
2
|
-
|
3
|
-
## 4.3.0 (2016-06-26)
|
4
|
-
* Add Windows testing on Appveyor
|
5
|
-
* Silence output by default when daemonizing
|
6
|
-
* Update vagrant setup
|
7
|
-
* Add a Code of Conduct
|
8
|
-
* Update gem metadata per latest Bundler defaults
|
9
|
-
|
10
|
-
## 4.2.1 (2016-06-08)
|
11
|
-
* Optimization of `find_delayed_selection`
|
12
|
-
* More defensive code around redis disconnects
|
13
|
-
* Only trap existing signals on given platform
|
14
|
-
* RuboCop auto-fixes
|
15
|
-
* Dependency updates
|
16
|
-
* Docs improvements
|
17
|
-
|
18
|
-
## 4.2.0 (2016-04-29)
|
19
|
-
* Bugfix for a race condition in concurrent restarts
|
20
|
-
* Clean up and simplify the scheduling extension
|
21
|
-
* Make `Resque::Scheduler.logger` accessible to user
|
22
|
-
* Failure hook support for better extensibility
|
23
|
-
* Default failure handler now outputs stacktrace
|
24
|
-
* Add index column to scheduler tab
|
25
|
-
* Update rufus-scheduler
|
26
|
-
* Bugfix for displaying schedules appropriate to the `env`
|
27
|
-
in scheduler UI
|
28
|
-
|
29
|
-
## 4.1.0 (2016-02-10)
|
30
|
-
* View helper to cut down on repetition
|
31
|
-
* Bugfix to check thread life only if present
|
32
|
-
* New `Resque.(find|enqueue)_delayed_selection` methods to complement
|
33
|
-
`Resque.remove_delayed_selection`
|
34
|
-
* Leave undefined env vars unset in internal options hash
|
35
|
-
* Insulate checking `Rails.env`
|
36
|
-
* Documentation updates and typo fixes
|
37
|
-
|
38
|
-
## 4.0.0 (2014-12-21)
|
39
|
-
* Bump rufus-scheduler dependency to `~> 3.0`
|
40
|
-
* Address warning from redis-namespace related to `#unwatch`
|
41
|
-
* Show current master in the web UI
|
42
|
-
* Bugfix related to schedule check when no jobs are in the queue
|
43
|
-
* Documentation updates
|
44
|
-
|
45
|
-
## 3.1.0 (2014-12-21)
|
46
|
-
* Note in README.md about production redis deployment configuration
|
47
|
-
* Bugfix to only override configuration options if provided
|
48
|
-
* Avoid use of redis `KEYS` command in `Resque.remove_delayed_selection`
|
49
|
-
* Better PID file cleanup
|
50
|
-
* Added option to filter by job class in `Resque.remove_delayed_selection`
|
51
|
-
* Bugfix to only release master lock if it belongs to us
|
52
|
-
* Tell-don't-ask with `Resque.schedule` to enable atomic clear & set
|
53
|
-
|
54
|
-
## 3.0.0 (2014-05-27)
|
55
|
-
* The grand re-namespacing of
|
56
|
-
`resque_scheduler/(.*)` => `resque/scheduler/\1`
|
57
|
-
* Cleanup of a ton of rubocop offenses
|
58
|
-
* Vagrant setup
|
59
|
-
* Documentation updates
|
60
|
-
* "Refactoring"
|
61
|
-
* Added support for last execution information through the web
|
62
|
-
* Handling signals while "sleeping" by relying on `Thread#wakeup`
|
63
|
-
* CodeClimate integration
|
64
|
-
* Addition of `Resque.delayed?` and `Resque.next_delayed_schedule`
|
65
|
-
* Testing against same rubies as resque (+ 2.1.1)
|
66
|
-
* Renamed `Resque.set_last_run` to `Resque.last_enqueued_at`
|
67
|
-
* Allow scheduled jobs to be deleted via resque web
|
68
|
-
* Fixed duplicated layout for `search_form` partial template.
|
69
|
-
* Fix issue where Web UI was ONLY showing jobs that only run in the current
|
70
|
-
environment
|
71
|
-
|
72
|
-
## 2.5.5 (2014-02-27)
|
73
|
-
* Only showing link to job with args if job is present
|
74
|
-
* Only showing scheduled jobs that match current env or omit env
|
75
|
-
* Ensuring lock and acquire lua scripts are refreshed on timeout change
|
76
|
-
* Switch to using `mono_logger` instead of stdlib `logger`
|
77
|
-
|
78
|
-
## 2.5.4 (2014-02-17)
|
79
|
-
* Documentation updates
|
80
|
-
|
81
|
-
## 2.5.3 (2014-02-12)
|
82
|
-
* Handling signals during poll sleep
|
83
|
-
|
84
|
-
## 2.5.2 (2014-02-11)
|
85
|
-
* Pinning down dependency versions more tightly
|
86
|
-
|
87
|
-
## 2.5.1 (2014-02-09)
|
88
|
-
* Make signal handling (really) Ruby 2 compatible
|
89
|
-
|
90
|
-
## 2.5.0 (2014-02-09)
|
91
|
-
* Use `logger.error` when logging errors from `handle_errors`
|
92
|
-
* Added search feature to the Delayed tab in Resque Web
|
93
|
-
* Fix confusion with redis version requirements in `README.md`
|
94
|
-
|
95
|
-
## 2.4.0 (2014-01-14)
|
96
|
-
|
97
|
-
* Including optional env name in procline
|
98
|
-
* Fixing an explosion regarding `every` in the views
|
99
|
-
* Bumping the copyright year
|
100
|
-
* Corrected doc for syntax of class and every keys
|
101
|
-
* Adding a standalone executable
|
102
|
-
* **POSSIBLE BREAKING CHANGE**: Dropping support for ree
|
103
|
-
* Add support for persistence of dynamic schedules
|
104
|
-
* Fix unsafe shutdown in Ruby 2
|
105
|
-
* Adding `.configure` convenience method for block-style configuration
|
106
|
-
* Add `.remove_delayed_selection` method to remove based on result of a block
|
107
|
-
* Add support for viewing all schedules for a job in web UI
|
108
|
-
* Use resque redis namespace in the master lock key
|
109
|
-
* Including optional app name in procline
|
110
|
-
* Various test improvements, :bug: fixes, and documentation updates!
|
111
|
-
|
112
|
-
## 2.3.1 (2013-11-20)
|
113
|
-
|
114
|
-
* Correcting `require_paths` in gemspec
|
115
|
-
|
116
|
-
## 2.3.0 (2013-11-07)
|
117
|
-
|
118
|
-
* Fix re-introduced `ThreadError` on Ruby 2
|
119
|
-
* **BREAKING CHANGE**: Added `RESQUE_SCHEDULER_INTERVAL` in place of `INTERVAL`
|
120
|
-
* Use `Float()` instead of `Integer()` to calculate poll sleep amount
|
121
|
-
* Upgraded dependence of Resque to support 1.25
|
122
|
-
* Add rufus scheduler `every` notice to README
|
123
|
-
* Use `Resque.validate` instead of custom `.validate_job!`
|
124
|
-
* Specify MIT license in gemspec
|
125
|
-
|
126
|
-
## 2.2.0 (2013-10-13)
|
127
|
-
|
128
|
-
* Locking rufus-scheduler dependency to `~> 2.0`
|
129
|
-
* Updated redis dependency to `>= 3.0.0`
|
130
|
-
* Add support for parameterized resque jobs.
|
131
|
-
* Allowing prefix for `master_lock_key`.
|
132
|
-
* Add `Resque.clean_schedules` method, which is useful when setting up the
|
133
|
-
scheduler for the first time.
|
134
|
-
* Bug fixes related to first time schedule retrieval and missing schedules.
|
135
|
-
|
136
|
-
## 2.1.0 (2013-09-20)
|
137
|
-
|
138
|
-
* Locking to resque < 1.25.0 (for now)
|
139
|
-
* Ensuring `Resque.schedule=` sets rather than appends
|
140
|
-
* Process daemonization fixes including stdio redirection and redis client
|
141
|
-
reconnection
|
142
|
-
* Add `#scheduled_at` which returns an array of timestamps at which the
|
143
|
-
specified job is scheduled
|
144
|
-
* Syncing stdout/stderr
|
145
|
-
* Add `#enqueue_delayed` for enqueueing specific delayed jobs immediately
|
146
|
-
* Show server local time in resque-web
|
147
|
-
* Enqueue immediately if job is being enqueued in the past
|
148
|
-
* Using a logger instead of `#puts`, configurable via `LOGFILE`, `VERBOSE`, and
|
149
|
-
`MUTE` environmental variables, as well as being settable via
|
150
|
-
`Resque::Scheduler#logger`
|
151
|
-
* Fixing scheduler template when arrays are passed to rufus-scheduler
|
152
|
-
* Add support for configuring `Resque::Scheduler.poll_sleep_amount` via the
|
153
|
-
`INTERVAL` environmental variable.
|
154
|
-
* Fixed shutdown in ruby 2.0.0
|
155
|
-
* Removed dependency on `Resque::Helpers`
|
156
|
-
|
157
|
-
## 2.0.1 (2013-03-20)
|
158
|
-
|
159
|
-
* Adding locking to support master failover
|
160
|
-
* Allow custom job classes to be used in `Resque.enqueue_at`
|
161
|
-
* More efficient `#remove_delayed` implementation
|
162
|
-
* Allowing `#enqueue_at` to call `#scheduled` when `Resque.inline` is `true`
|
163
|
-
|
164
|
-
## 2.0.0 (2012-05-04)
|
165
|
-
|
166
|
-
* Add support for Resque.inline configuration (carlosantoniodasilva)
|
167
|
-
* Fixing possible job loss race condition around deleting delayed queues
|
168
|
-
and enqueuing a job 0 seconds in the future.
|
169
|
-
|
170
|
-
### 2.0.0.h (2012-03-19)
|
171
|
-
|
172
|
-
* Adding plugin support with hooks (andreas)
|
173
|
-
|
174
|
-
### 2.0.0.f (2011-11-03)
|
175
|
-
|
176
|
-
* TODO: address race condition with delayed jobs (using redis transactions)
|
177
|
-
* Support `ENV['BACKGROUND']` flag for daemonizing (bernerdschaefer)
|
178
|
-
* Added support for `before_schedule` and `after_schedule` hooks (yaauie)
|
179
|
-
* Added `remove_delayed_job_from_timestamp` to remove delayed jobs from
|
180
|
-
a given timestamp.
|
181
|
-
|
182
|
-
### 2.0.0.e (2011-09-16)
|
183
|
-
|
184
|
-
* Adding `enqueue_at_with_queue`/`enqueue_in_with_queue` support (niralisse)
|
185
|
-
* Adding `Resque::Scheduler.poll_sleep_amount` to allow for configuring
|
186
|
-
the sleep time b/w delayed queue polls.
|
187
|
-
* Add a "Clear Delayed Jobs" button to the Delayed Jobs page (john-griffin)
|
188
|
-
* Fixed pagination issue on the Delayed tab
|
189
|
-
|
190
|
-
### 2.0.0.d (2011-04-04)
|
191
|
-
|
192
|
-
* porting bug fixes from v1.9-stable
|
193
|
-
|
194
|
-
### 2.0.0.c
|
195
|
-
|
196
|
-
* Rake task drop a pid file (sreeix)
|
197
|
-
|
198
|
-
### 2.0.0.b
|
199
|
-
|
200
|
-
* Bug fixes
|
201
|
-
|
202
|
-
### 2.0.0.a
|
203
|
-
|
204
|
-
* Dynamic schedule support (brianjlandau, davidyang)
|
205
|
-
* Now depends on redis >=1.3
|
206
|
-
|
207
|
-
## 1.9.11 (2013-11-20)
|
208
|
-
|
209
|
-
* Fixed behavior of `#validate_job!` via `#enqueue_at_with_queue` #286
|
210
|
-
* Correcting `require_paths` in gemspec #288
|
211
|
-
|
212
|
-
## 1.9.10 (2013-09-19)
|
213
|
-
|
214
|
-
* Backported `#enqueue_at_with_queue`
|
215
|
-
* Locking to resque < 1.25.0
|
216
|
-
* Mocha setup compatibility
|
217
|
-
* Ruby 1.8 compatibility in scheduler tab when schedule keys are symbols
|
218
|
-
|
219
|
-
## 1.9.9 (2011-03-29)
|
220
|
-
|
221
|
-
* Compatibility with resque 1.15.0
|
222
|
-
|
223
|
-
## 1.9.8 (???)
|
224
|
-
|
225
|
-
* Validates delayed jobs prior to insertion into the delayed queue (bogdan)
|
226
|
-
* Rescue exceptions that occur during queuing and log them (dgrijalva)
|
227
|
-
|
228
|
-
## 1.9.7 (2010-11-09)
|
229
|
-
|
230
|
-
* Support for rufus-scheduler "every" syntax (fallwith)
|
231
|
-
* Ability to pass a Time to `handle_delayed_items` for testing/staging (rcarver)
|
232
|
-
|
233
|
-
## 1.9.6 (2010-10-08)
|
234
|
-
|
235
|
-
* Support for custom job classes (like resque-status) (mattetti)
|
236
|
-
|
237
|
-
## 1.9.5 (2010-09-09)
|
238
|
-
|
239
|
-
* Updated scheduler rake task to allow for an alternate setup task
|
240
|
-
to avoid loading the entire stack. (chewbranca)
|
241
|
-
* Fixed sig issue on win32 (#25)
|
242
|
-
|
243
|
-
## 1.9.4 (2010-07-29)
|
244
|
-
|
245
|
-
* Adding ability to remove jobs from delayed queue (joshsz)
|
246
|
-
* Fixing issue #23 (removing .present? reference)
|
247
|
-
|
248
|
-
## 1.9.3 (2010-07-07)
|
249
|
-
|
250
|
-
* Bug fix (#19)
|
251
|
-
|
252
|
-
## 1.9.2 (2010-06-16)
|
253
|
-
|
254
|
-
* Fixing issue with redis gem 2.0.1 and redis server 1.2.6 (dbackeus)
|
255
|
-
|
256
|
-
## 1.9.1 (2010-06-04)
|
257
|
-
|
258
|
-
* Fixing issue with redis server 1.2.6 and redis gem 2.0.1
|
259
|
-
|
260
|
-
## 1.9.0 (2010-06-04)
|
261
|
-
|
262
|
-
* Adding redis 2.0 support (bpo)
|
263
|
-
|
264
|
-
## 1.8.2 (2010-06-04)
|
265
|
-
|
266
|
-
* Adding queue now functionality to delayed timestamps (daviddoan)
|
267
|
-
|
268
|
-
## 1.8.1 (2010-05-19)
|
269
|
-
|
270
|
-
* Adding `rails_env` for scheduled jobs to support scoping jobs by
|
271
|
-
`RAILS_ENV` (gravis).
|
272
|
-
* Fixing ruby 1.8.6 compatibility issue.
|
273
|
-
* Adding gemspec for bundler support.
|
274
|
-
|
275
|
-
## 1.8.0 (2010-04-14)
|
276
|
-
|
277
|
-
* Moving version to match corresponding resque version
|
278
|
-
* Sorting schedule on Scheduler tab
|
279
|
-
* Adding tests for resque-web (gravis)
|
280
|
-
|
281
|
-
## 1.0.5 (2010-03-01)
|
282
|
-
|
283
|
-
* Fixed support for overriding queue from schedule config.
|
284
|
-
* Removed resque-web dependency on loading the job classes for "Queue Now",
|
285
|
-
provided "queue" is specified in the schedule.
|
286
|
-
* The queue is now stored with the job and arguments in the delayed queue so
|
287
|
-
there is no longer a need for the scheduler to load job classes to introspect
|
288
|
-
the queue.
|
289
|
-
|
290
|
-
## 1.0.4 (2010-02-26)
|
291
|
-
|
292
|
-
* Added support for specifying the queue to put the job onto. This allows for
|
293
|
-
you to have one job that can go onto multiple queues and be able to schedule
|
294
|
-
jobs without having to load the job classes.
|
295
|
-
|
296
|
-
## 1.0.3 (2010-02-11)
|
297
|
-
|
298
|
-
* Added support for scheduled jobs with empty crons. This is helpful to have
|
299
|
-
jobs that you don't want on a schedule, but do want to be able to queue by
|
300
|
-
clicking a button.
|
301
|
-
|
302
|
-
## 1.0.2 (2010-02-?)
|
303
|
-
|
304
|
-
* Change Delayed Job tab to display job details if only 1 job exists
|
305
|
-
for a given timestamp
|
306
|
-
|
307
|
-
## 1.0.1 (2010-01-?)
|
308
|
-
|
309
|
-
* Bugfix: delayed jobs close together resulted in a 5 second sleep
|
310
|
-
|