resque-scheduler 4.9.0 → 4.10.1
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 +4 -4
- data/.github/workflows/codeql-analysis.yml +1 -1
- data/.github/workflows/rubocop.yml +2 -2
- data/.github/workflows/ruby.yml +1 -1
- data/AUTHORS.md +1 -0
- data/CHANGELOG.md +12 -0
- data/README.md +2 -2
- data/lib/resque/scheduler/configuration.rb +1 -1
- data/lib/resque/scheduler/logger_builder.rb +17 -6
- data/lib/resque/scheduler/server/views/delayed_schedules.erb +1 -1
- data/lib/resque/scheduler/version.rb +1 -1
- data/resque-scheduler.gemspec +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf0c6b96fa880ba5a817d63c04d9e17a070061c1f3cd7fe8b9ad6c91c2ffe016
|
4
|
+
data.tar.gz: a01edeea347f025e87b7327a89a6fb509716ecea47b3cbe1a8c4eea0de08e3ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a8facf77afaf21a8a39ebfab4cac5f42d97e743a353f70e43dfc3caa7f97da8ff6c9f868d57e9d7ba36c96f4b91cf4c66032e0803d69a1f2f04283e0fddac65
|
7
|
+
data.tar.gz: 470bbd7ded28c0c4b62d3aa4bfa9b78c04066e3e430a124c6671c6dd336b3678ff3edab5266a72a705bb6cc8b65e1899b70891b4b06829dc417396d3aebaf8b1
|
data/.github/workflows/ruby.yml
CHANGED
data/AUTHORS.md
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
|
3
3
|
**ATTN**: This project uses [semantic versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [4.10.1] - 2023-12-15
|
6
|
+
### Fixed
|
7
|
+
* Fix json dump crasher with JSON 2.7.0+ by @PatrickTulskie in #781
|
8
|
+
* Fix for #761, reflected XSS in delayed_schedules.erb by @PatrickTulskie in #780
|
9
|
+
|
10
|
+
## [4.10.0] - 2023-08-20
|
11
|
+
### Added
|
12
|
+
* Add logfmt option for logging output (#763)
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
* Rubocop Fixes (#771)
|
16
|
+
|
5
17
|
## [4.9.0] - 2023-05-31
|
6
18
|
### Changed
|
7
19
|
- Adding batching to re-queuing for timestamp by @brennen-stripe in #767
|
data/README.md
CHANGED
@@ -139,7 +139,7 @@ requiring `resque` and `resque/scheduler` (default empty).
|
|
139
139
|
* `RESQUE_SCHEDULER_INTERVAL` - Interval in seconds for checking if a
|
140
140
|
scheduled job must run (coerced with `Kernel#Float()`) (default `5`)
|
141
141
|
* `LOGFILE` - Log file name (default empty, meaning `$stdout`)
|
142
|
-
* `LOGFORMAT` - Log output format to use (either `'text'` or `'
|
142
|
+
* `LOGFORMAT` - Log output format to use (either `'text'`, `'json'` or `'logfmt'`,
|
143
143
|
default `'text'`)
|
144
144
|
* `PIDFILE` - If non-empty, write process PID to file (default empty)
|
145
145
|
* `QUIET` - Silence most output if non-empty (equivalent to a level of
|
@@ -663,7 +663,7 @@ are toggled by environment variables:
|
|
663
663
|
- `QUIET` will stop logging anything. Completely silent.
|
664
664
|
- `VERBOSE` opposite of 'QUIET'; will log even debug information
|
665
665
|
- `LOGFILE` specifies the file to write logs to. (default standard output)
|
666
|
-
- `LOGFORMAT` specifies either "text" or "
|
666
|
+
- `LOGFORMAT` specifies either "text", "json" or "logfmt" output format
|
667
667
|
(default "text")
|
668
668
|
|
669
669
|
All of these variables are optional and will be given the following default
|
@@ -15,7 +15,7 @@ module Resque
|
|
15
15
|
# - :quiet if logger needs to be silent for all levels. Default - false
|
16
16
|
# - :verbose if there is a need in debug messages. Default - false
|
17
17
|
# - :log_dev to output logs into a desired file. Default - STDOUT
|
18
|
-
# - :format log format, either 'text' or '
|
18
|
+
# - :format log format, either 'text', 'json' or 'logfmt'. Default - 'text'
|
19
19
|
#
|
20
20
|
# Example:
|
21
21
|
#
|
@@ -32,6 +32,7 @@ module Resque
|
|
32
32
|
# Returns an instance of MonoLogger
|
33
33
|
def build
|
34
34
|
logger = MonoLogger.new(@log_dev)
|
35
|
+
logger.progname = 'resque-scheduler'.freeze
|
35
36
|
logger.level = level
|
36
37
|
logger.formatter = send(:"#{@format}_formatter")
|
37
38
|
logger
|
@@ -50,21 +51,31 @@ module Resque
|
|
50
51
|
end
|
51
52
|
|
52
53
|
def text_formatter
|
53
|
-
proc do |severity, datetime,
|
54
|
-
"
|
54
|
+
proc do |severity, datetime, progname, msg|
|
55
|
+
"#{progname}: [#{severity}] #{datetime.iso8601}: #{msg}\n"
|
55
56
|
end
|
56
57
|
end
|
57
58
|
|
58
59
|
def json_formatter
|
59
60
|
proc do |severity, datetime, progname, msg|
|
60
61
|
require 'json'
|
61
|
-
|
62
|
-
name:
|
62
|
+
log_data = {
|
63
|
+
name: progname,
|
63
64
|
progname: progname,
|
64
65
|
level: severity,
|
65
66
|
timestamp: datetime.iso8601,
|
66
67
|
msg: msg
|
67
|
-
|
68
|
+
}
|
69
|
+
JSON.dump(log_data) + "\n"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
def logfmt_formatter
|
74
|
+
proc do |severity, datetime, progname, msg|
|
75
|
+
"timestamp=\"#{datetime.iso8601}\" " \
|
76
|
+
"level=\"#{severity}\" " \
|
77
|
+
"progname=\"#{progname}\" " \
|
78
|
+
"msg=\"#{msg}\"\n"
|
68
79
|
end
|
69
80
|
end
|
70
81
|
end
|
data/resque-scheduler.gemspec
CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
Ryan Biesemeyer
|
13
13
|
Dan Buch
|
14
14
|
Michael Bianco
|
15
|
+
Patrick Tulskie
|
15
16
|
EOF
|
16
17
|
spec.email = %w(
|
17
18
|
bvandenbos@gmail.com
|
@@ -19,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
19
20
|
ryan@yaauie.com
|
20
21
|
dan@meatballhat.com
|
21
22
|
mike@mikebian.co
|
23
|
+
patricktulskie@gmail.com
|
22
24
|
)
|
23
25
|
spec.summary = 'Light weight job scheduling on top of Resque'
|
24
26
|
spec.description = <<-DESCRIPTION
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben VandenBos
|
@@ -9,10 +9,11 @@ authors:
|
|
9
9
|
- Ryan Biesemeyer
|
10
10
|
- Dan Buch
|
11
11
|
- Michael Bianco
|
12
|
+
- Patrick Tulskie
|
12
13
|
autorequire:
|
13
14
|
bindir: exe
|
14
15
|
cert_chain: []
|
15
|
-
date: 2023-
|
16
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
16
17
|
dependencies:
|
17
18
|
- !ruby/object:Gem::Dependency
|
18
19
|
name: bundler
|
@@ -254,6 +255,7 @@ email:
|
|
254
255
|
- ryan@yaauie.com
|
255
256
|
- dan@meatballhat.com
|
256
257
|
- mike@mikebian.co
|
258
|
+
- patricktulskie@gmail.com
|
257
259
|
executables:
|
258
260
|
- resque-scheduler
|
259
261
|
extensions: []
|