jobs_dashboard 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +98 -49
- data/README.md +12 -13
- data/app/models/jobs_dashboard/job_log.rb +12 -5
- data/lib/jobs_dashboard/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ac1716f4aaf56785c2824c1a4a29345f0e5e1072364a1365a9ae528f7c56b82
|
4
|
+
data.tar.gz: ca6972d982118346327002207cf0ffba43ed625cc1d8aa19404b7d7df6751ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3658f36fe5b8e22b86f2094faa4afbd52d3c8af18ad948e593ebba85f3c20c8e9e25b5bc2c54246c77f937092711ea0c312bb6cbc9fb907a245cc906d5b53ca2
|
7
|
+
data.tar.gz: 8ca563f3e6e0cc7c173c8fc35da70a7e771ecb10676709667405cbf1ea41f91902d13a40b6917f397986e4e11e14c6f926bd61c06e34327505a8d1fdc05685bd
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jobs_dashboard (0.3.
|
4
|
+
jobs_dashboard (0.3.6)
|
5
5
|
kaminari
|
6
6
|
ransack
|
7
7
|
sidekiq (>= 6.0)
|
@@ -10,37 +10,62 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actionpack (7.
|
14
|
-
actionview (= 7.
|
15
|
-
activesupport (= 7.
|
16
|
-
|
13
|
+
actionpack (7.1.5.1)
|
14
|
+
actionview (= 7.1.5.1)
|
15
|
+
activesupport (= 7.1.5.1)
|
16
|
+
nokogiri (>= 1.8.5)
|
17
|
+
racc
|
18
|
+
rack (>= 2.2.4)
|
19
|
+
rack-session (>= 1.0.1)
|
17
20
|
rack-test (>= 0.6.3)
|
18
|
-
rails-dom-testing (~> 2.
|
19
|
-
rails-html-sanitizer (~> 1.
|
20
|
-
actionview (7.
|
21
|
-
activesupport (= 7.
|
21
|
+
rails-dom-testing (~> 2.2)
|
22
|
+
rails-html-sanitizer (~> 1.6)
|
23
|
+
actionview (7.1.5.1)
|
24
|
+
activesupport (= 7.1.5.1)
|
22
25
|
builder (~> 3.1)
|
23
|
-
erubi (~> 1.
|
24
|
-
rails-dom-testing (~> 2.
|
25
|
-
rails-html-sanitizer (~> 1.
|
26
|
-
activemodel (7.
|
27
|
-
activesupport (= 7.
|
28
|
-
activerecord (7.
|
29
|
-
activemodel (= 7.
|
30
|
-
activesupport (= 7.
|
31
|
-
|
26
|
+
erubi (~> 1.11)
|
27
|
+
rails-dom-testing (~> 2.2)
|
28
|
+
rails-html-sanitizer (~> 1.6)
|
29
|
+
activemodel (7.1.5.1)
|
30
|
+
activesupport (= 7.1.5.1)
|
31
|
+
activerecord (7.1.5.1)
|
32
|
+
activemodel (= 7.1.5.1)
|
33
|
+
activesupport (= 7.1.5.1)
|
34
|
+
timeout (>= 0.4.0)
|
35
|
+
activesupport (7.1.5.1)
|
36
|
+
base64
|
37
|
+
benchmark (>= 0.3)
|
38
|
+
bigdecimal
|
32
39
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
40
|
+
connection_pool (>= 2.2.5)
|
41
|
+
drb
|
33
42
|
i18n (>= 1.6, < 2)
|
43
|
+
logger (>= 1.4.2)
|
34
44
|
minitest (>= 5.1)
|
45
|
+
mutex_m
|
46
|
+
securerandom (>= 0.3)
|
35
47
|
tzinfo (~> 2.0)
|
36
|
-
|
37
|
-
|
38
|
-
|
48
|
+
base64 (0.3.0)
|
49
|
+
benchmark (0.4.1)
|
50
|
+
bigdecimal (3.2.1)
|
51
|
+
builder (3.3.0)
|
52
|
+
cgi (0.4.2)
|
53
|
+
concurrent-ruby (1.3.5)
|
54
|
+
connection_pool (2.5.3)
|
39
55
|
crass (1.0.6)
|
56
|
+
date (3.4.1)
|
40
57
|
diff-lcs (1.4.4)
|
41
|
-
|
42
|
-
|
58
|
+
drb (2.2.3)
|
59
|
+
erb (4.0.4)
|
60
|
+
cgi (>= 0.3.3)
|
61
|
+
erubi (1.13.1)
|
62
|
+
i18n (1.14.7)
|
43
63
|
concurrent-ruby (~> 1.0)
|
64
|
+
io-console (0.8.0)
|
65
|
+
irb (1.15.2)
|
66
|
+
pp (>= 0.6.0)
|
67
|
+
rdoc (>= 4.0.0)
|
68
|
+
reline (>= 0.4.2)
|
44
69
|
kaminari (1.2.2)
|
45
70
|
activesupport (>= 4.1.0)
|
46
71
|
kaminari-actionview (= 1.2.2)
|
@@ -53,38 +78,58 @@ GEM
|
|
53
78
|
activerecord
|
54
79
|
kaminari-core (= 1.2.2)
|
55
80
|
kaminari-core (1.2.2)
|
56
|
-
|
81
|
+
logger (1.7.0)
|
82
|
+
loofah (2.24.1)
|
57
83
|
crass (~> 1.0.2)
|
58
84
|
nokogiri (>= 1.12.0)
|
59
|
-
|
60
|
-
minitest (5.
|
61
|
-
|
85
|
+
mini_portile2 (2.8.9)
|
86
|
+
minitest (5.25.5)
|
87
|
+
mutex_m (0.3.0)
|
88
|
+
nokogiri (1.15.7)
|
89
|
+
mini_portile2 (~> 2.8.2)
|
62
90
|
racc (~> 1.4)
|
63
|
-
|
64
|
-
|
65
|
-
|
91
|
+
pp (0.6.2)
|
92
|
+
prettyprint
|
93
|
+
prettyprint (0.2.0)
|
94
|
+
psych (5.2.6)
|
95
|
+
date
|
96
|
+
stringio
|
97
|
+
racc (1.8.1)
|
98
|
+
rack (3.1.15)
|
99
|
+
rack-session (2.1.1)
|
100
|
+
base64 (>= 0.1.0)
|
101
|
+
rack (>= 3.0.0)
|
102
|
+
rack-test (2.2.0)
|
66
103
|
rack (>= 1.3)
|
67
|
-
|
104
|
+
rackup (2.2.1)
|
105
|
+
rack (>= 3)
|
106
|
+
rails-dom-testing (2.3.0)
|
68
107
|
activesupport (>= 5.0.0)
|
69
108
|
minitest
|
70
109
|
nokogiri (>= 1.6)
|
71
|
-
rails-html-sanitizer (1.6.
|
110
|
+
rails-html-sanitizer (1.6.2)
|
72
111
|
loofah (~> 2.21)
|
73
|
-
nokogiri (
|
74
|
-
railties (7.
|
75
|
-
actionpack (= 7.
|
76
|
-
activesupport (= 7.
|
77
|
-
|
112
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
113
|
+
railties (7.1.5.1)
|
114
|
+
actionpack (= 7.1.5.1)
|
115
|
+
activesupport (= 7.1.5.1)
|
116
|
+
irb
|
117
|
+
rackup (>= 1.0.0)
|
78
118
|
rake (>= 12.2)
|
79
|
-
thor (~> 1.0)
|
80
|
-
zeitwerk (~> 2.
|
119
|
+
thor (~> 1.0, >= 1.2.2)
|
120
|
+
zeitwerk (~> 2.6)
|
81
121
|
rake (13.0.6)
|
82
|
-
ransack (4.
|
122
|
+
ransack (4.0.0)
|
83
123
|
activerecord (>= 6.1.5)
|
84
124
|
activesupport (>= 6.1.5)
|
85
125
|
i18n
|
86
|
-
|
126
|
+
rdoc (6.14.0)
|
127
|
+
erb
|
128
|
+
psych (>= 4.0.0)
|
129
|
+
redis-client (0.24.0)
|
87
130
|
connection_pool
|
131
|
+
reline (0.6.1)
|
132
|
+
io-console (~> 0.5)
|
88
133
|
rspec (3.10.0)
|
89
134
|
rspec-core (~> 3.10.0)
|
90
135
|
rspec-expectations (~> 3.10.0)
|
@@ -98,24 +143,28 @@ GEM
|
|
98
143
|
diff-lcs (>= 1.2.0, < 2.0)
|
99
144
|
rspec-support (~> 3.10.0)
|
100
145
|
rspec-support (3.10.3)
|
101
|
-
|
102
|
-
|
146
|
+
securerandom (0.3.2)
|
147
|
+
sidekiq (7.3.9)
|
148
|
+
base64
|
103
149
|
connection_pool (>= 2.3.0)
|
150
|
+
logger
|
104
151
|
rack (>= 2.2.4)
|
105
|
-
redis-client (>= 0.
|
106
|
-
slim (5.
|
152
|
+
redis-client (>= 0.22.2)
|
153
|
+
slim (5.2.1)
|
107
154
|
temple (~> 0.10.0)
|
108
155
|
tilt (>= 2.1.0)
|
109
|
-
slim-rails (3.
|
156
|
+
slim-rails (3.7.0)
|
110
157
|
actionpack (>= 3.1)
|
111
158
|
railties (>= 3.1)
|
112
159
|
slim (>= 3.0, < 6.0, != 5.0.0)
|
160
|
+
stringio (3.1.7)
|
113
161
|
temple (0.10.3)
|
114
|
-
thor (1.3.
|
115
|
-
tilt (2.
|
162
|
+
thor (1.3.2)
|
163
|
+
tilt (2.6.0)
|
164
|
+
timeout (0.4.3)
|
116
165
|
tzinfo (2.0.6)
|
117
166
|
concurrent-ruby (~> 1.0)
|
118
|
-
zeitwerk (2.6.
|
167
|
+
zeitwerk (2.6.18)
|
119
168
|
|
120
169
|
PLATFORMS
|
121
170
|
ruby
|
data/README.md
CHANGED
@@ -34,6 +34,8 @@ Set JobsDashboard::JobLogger as sidekiq default logger
|
|
34
34
|
require 'jobs_dashboard'
|
35
35
|
|
36
36
|
Sidekiq.configure_client do |config|
|
37
|
+
# accepts :expiration (optional)
|
38
|
+
JobsDashboard.configure_server_middleware config
|
37
39
|
# accepts :expiration (optional)
|
38
40
|
JobsDashboard.configure_client_middleware config
|
39
41
|
end
|
@@ -74,21 +76,18 @@ Options can be specified in worker's sidekiq_options with the key jobs_dashboard
|
|
74
76
|
|
75
77
|
In the job
|
76
78
|
```ruby
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
# add metadata
|
82
|
-
add_job_metadata(key, value)
|
83
|
-
```
|
79
|
+
class MyJob
|
80
|
+
include Sidekiq::Worker
|
81
|
+
include JobsDashboard::Worker
|
84
82
|
|
85
|
-
|
83
|
+
def perform
|
84
|
+
# add log line
|
85
|
+
add_job_log_line(value)
|
86
86
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
add_log_line(message)
|
87
|
+
# add metadata
|
88
|
+
add_job_metadata(key, value)
|
89
|
+
end
|
90
|
+
end
|
92
91
|
```
|
93
92
|
|
94
93
|
## Ajout d'un attribut commun a tous les jobs
|
@@ -11,11 +11,18 @@ module JobsDashboard
|
|
11
11
|
interrupted: 'interrupted'
|
12
12
|
}
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
if ActiveRecord.version >= Gem::Version.new('7.1')
|
15
|
+
serialize :args, coder: Array
|
16
|
+
serialize :metadata, coder: Hash
|
17
|
+
serialize :logs, coder: Array
|
18
|
+
serialize :backtrace, coder: Array
|
19
|
+
else
|
20
|
+
serialize :args, Array
|
21
|
+
serialize :metadata, Hash
|
22
|
+
serialize :logs, Array
|
23
|
+
serialize :backtrace, Array
|
24
|
+
end
|
25
|
+
|
19
26
|
validates :sidekiq_jid, presence: true, uniqueness: true
|
20
27
|
|
21
28
|
def self.ransackable_attributes(auth_object = nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jobs_dashboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patryk
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email:
|
71
71
|
- patryk@9troisquarts.com
|
72
72
|
executables: []
|
@@ -139,7 +139,7 @@ licenses:
|
|
139
139
|
metadata:
|
140
140
|
homepage_uri: https://github.com/9troisquarts/jobs_dashboard
|
141
141
|
source_code_uri: https://github.com/9troisquarts/jobs_dashboard
|
142
|
-
post_install_message:
|
142
|
+
post_install_message:
|
143
143
|
rdoc_options: []
|
144
144
|
require_paths:
|
145
145
|
- lib
|
@@ -154,8 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
- !ruby/object:Gem::Version
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
|
-
rubygems_version: 3.
|
158
|
-
signing_key:
|
157
|
+
rubygems_version: 3.1.6
|
158
|
+
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Sidekiq jobs dashboard
|
161
161
|
test_files: []
|