inst-jobs 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/db/migrate/20181217155351_speed_up_max_concurrent_triggers.rb +95 -0
  3. data/db/migrate/20190726154743_make_critical_columns_not_null.rb +15 -0
  4. data/db/migrate/20200330230722_add_id_to_get_delayed_jobs_index.rb +25 -0
  5. data/db/migrate/20200824222232_speed_up_max_concurrent_delete_trigger.rb +95 -0
  6. data/db/migrate/20200825011002_add_strand_order_override.rb +126 -0
  7. data/lib/delayed/backend/active_record.rb +93 -14
  8. data/lib/delayed/backend/redis/job.rb +8 -2
  9. data/lib/delayed/batch.rb +1 -1
  10. data/lib/delayed/lifecycle.rb +1 -0
  11. data/lib/delayed/periodic.rb +7 -4
  12. data/lib/delayed/server.rb +19 -0
  13. data/lib/delayed/server/helpers.rb +1 -0
  14. data/lib/delayed/server/public/js/app.js +49 -1
  15. data/lib/delayed/server/views/index.erb +16 -1
  16. data/lib/delayed/server/views/layout.erb +5 -3
  17. data/lib/delayed/settings.rb +5 -1
  18. data/lib/delayed/version.rb +1 -1
  19. data/lib/delayed/work_queue/parent_process/server.rb +14 -4
  20. data/lib/delayed/worker.rb +28 -6
  21. data/lib/delayed/worker/consul_health_check.rb +1 -1
  22. data/lib/delayed/worker/health_check.rb +9 -5
  23. data/lib/delayed/worker/null_health_check.rb +7 -1
  24. data/spec/active_record_job_spec.rb +36 -35
  25. data/spec/delayed/server_spec.rb +43 -1
  26. data/spec/delayed/work_queue/parent_process/server_spec.rb +4 -1
  27. data/spec/delayed/worker/consul_health_check_spec.rb +2 -2
  28. data/spec/delayed/worker/health_check_spec.rb +2 -2
  29. data/spec/delayed/worker_spec.rb +67 -20
  30. data/spec/gemfiles/52.gemfile +7 -0
  31. data/spec/gemfiles/60.gemfile +7 -0
  32. data/spec/shared/delayed_batch.rb +11 -0
  33. data/spec/shared/shared_backend.rb +15 -0
  34. data/spec/shared/worker.rb +4 -0
  35. data/spec/spec_helper.rb +4 -1
  36. metadata +23 -27
  37. data/spec/gemfiles/42.gemfile.lock +0 -192
  38. data/spec/gemfiles/50.gemfile.lock +0 -187
  39. data/spec/gemfiles/51.gemfile.lock +0 -187
@@ -1,192 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- inst-jobs (0.14.6)
5
- activerecord (>= 4.2)
6
- activesupport (>= 4.2)
7
- after_transaction_commit (>= 1.0, < 3)
8
- railties (>= 4.2)
9
- redis (> 3.0)
10
- redis-scripting (~> 1.0.1)
11
- rufus-scheduler (~> 3.4, < 3.5)
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- specs:
16
- actionmailer (4.2.9)
17
- actionpack (= 4.2.9)
18
- actionview (= 4.2.9)
19
- activejob (= 4.2.9)
20
- mail (~> 2.5, >= 2.5.4)
21
- rails-dom-testing (~> 1.0, >= 1.0.5)
22
- actionpack (4.2.9)
23
- actionview (= 4.2.9)
24
- activesupport (= 4.2.9)
25
- rack (~> 1.6)
26
- rack-test (~> 0.6.2)
27
- rails-dom-testing (~> 1.0, >= 1.0.5)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- actionview (4.2.9)
30
- activesupport (= 4.2.9)
31
- builder (~> 3.1)
32
- erubis (~> 2.7.0)
33
- rails-dom-testing (~> 1.0, >= 1.0.5)
34
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
- activejob (4.2.9)
36
- activesupport (= 4.2.9)
37
- globalid (>= 0.3.0)
38
- activemodel (4.2.9)
39
- activesupport (= 4.2.9)
40
- builder (~> 3.1)
41
- activerecord (4.2.9)
42
- activemodel (= 4.2.9)
43
- activesupport (= 4.2.9)
44
- arel (~> 6.0)
45
- activesupport (4.2.9)
46
- i18n (~> 0.7)
47
- minitest (~> 5.1)
48
- thread_safe (~> 0.3, >= 0.3.4)
49
- tzinfo (~> 1.1)
50
- addressable (2.5.2)
51
- public_suffix (>= 2.0.2, < 4.0)
52
- after_transaction_commit (1.1.2)
53
- activerecord (>= 4.0)
54
- arel (6.0.4)
55
- backports (3.8.0)
56
- builder (3.2.3)
57
- bump (0.5.4)
58
- byebug (9.0.6)
59
- coderay (1.1.1)
60
- concurrent-ruby (1.0.5)
61
- database_cleaner (1.6.1)
62
- diff-lcs (1.3)
63
- erubis (2.7.0)
64
- et-orbi (1.1.2)
65
- tzinfo
66
- globalid (0.4.0)
67
- activesupport (>= 4.2.0)
68
- httpclient (2.8.3)
69
- i18n (0.8.6)
70
- imperium (0.3.0)
71
- addressable (~> 2.5.0)
72
- httpclient (~> 2.8)
73
- loofah (2.0.3)
74
- nokogiri (>= 1.5.9)
75
- mail (2.6.6)
76
- mime-types (>= 1.16, < 4)
77
- method_source (0.8.2)
78
- mime-types (3.1)
79
- mime-types-data (~> 3.2015)
80
- mime-types-data (3.2016.0521)
81
- mini_portile2 (2.2.0)
82
- minitest (5.10.3)
83
- multi_json (1.12.1)
84
- nokogiri (1.8.0)
85
- mini_portile2 (~> 2.2.0)
86
- pg (0.21.0)
87
- pry (0.10.4)
88
- coderay (~> 1.1.0)
89
- method_source (~> 0.8.1)
90
- slop (~> 3.4)
91
- public_suffix (3.0.2)
92
- rack (1.6.8)
93
- rack-protection (1.5.3)
94
- rack
95
- rack-test (0.6.3)
96
- rack (>= 1.0)
97
- rails (4.2.9)
98
- actionmailer (= 4.2.9)
99
- actionpack (= 4.2.9)
100
- actionview (= 4.2.9)
101
- activejob (= 4.2.9)
102
- activemodel (= 4.2.9)
103
- activerecord (= 4.2.9)
104
- activesupport (= 4.2.9)
105
- bundler (>= 1.3.0, < 2.0)
106
- railties (= 4.2.9)
107
- sprockets-rails
108
- rails-deprecated_sanitizer (1.0.3)
109
- activesupport (>= 4.2.0.alpha)
110
- rails-dom-testing (1.0.8)
111
- activesupport (>= 4.2.0.beta, < 5.0)
112
- nokogiri (~> 1.6)
113
- rails-deprecated_sanitizer (>= 1.0.1)
114
- rails-html-sanitizer (1.0.3)
115
- loofah (~> 2.0)
116
- railties (4.2.9)
117
- actionpack (= 4.2.9)
118
- activesupport (= 4.2.9)
119
- rake (>= 0.8.7)
120
- thor (>= 0.18.1, < 2.0)
121
- rake (12.0.0)
122
- redis (4.0.1)
123
- redis-scripting (1.0.1)
124
- redis (>= 3.0)
125
- rspec (3.4.0)
126
- rspec-core (~> 3.4.0)
127
- rspec-expectations (~> 3.4.0)
128
- rspec-mocks (~> 3.4.0)
129
- rspec-core (3.4.4)
130
- rspec-support (~> 3.4.0)
131
- rspec-expectations (3.4.0)
132
- diff-lcs (>= 1.2.0, < 2.0)
133
- rspec-support (~> 3.4.0)
134
- rspec-mocks (3.4.1)
135
- diff-lcs (>= 1.2.0, < 2.0)
136
- rspec-support (~> 3.4.0)
137
- rspec-support (3.4.1)
138
- rufus-scheduler (3.4.2)
139
- et-orbi (~> 1.0)
140
- sinatra (1.4.8)
141
- rack (~> 1.5)
142
- rack-protection (~> 1.4)
143
- tilt (>= 1.3, < 3)
144
- sinatra-contrib (1.4.7)
145
- backports (>= 2.0)
146
- multi_json
147
- rack-protection
148
- rack-test
149
- sinatra (~> 1.4.0)
150
- tilt (>= 1.3, < 3)
151
- slop (3.6.0)
152
- sprockets (3.7.1)
153
- concurrent-ruby (~> 1.0)
154
- rack (> 1, < 3)
155
- sprockets-rails (3.2.0)
156
- actionpack (>= 4.0)
157
- activesupport (>= 4.0)
158
- sprockets (>= 3.0.0)
159
- test_after_commit (0.4.1)
160
- activerecord (>= 3.2)
161
- thor (0.19.4)
162
- thread_safe (0.3.6)
163
- tilt (2.0.8)
164
- timecop (0.7.1)
165
- tzinfo (1.2.3)
166
- thread_safe (~> 0.1)
167
- wwtd (1.3.0)
168
-
169
- PLATFORMS
170
- ruby
171
-
172
- DEPENDENCIES
173
- after_transaction_commit (< 2)
174
- bump
175
- byebug
176
- database_cleaner (= 1.6.1)
177
- imperium (>= 0.2.3)
178
- inst-jobs!
179
- pg (< 1.0)
180
- pry
181
- rack-test
182
- rails (~> 4.2.5)
183
- rake
184
- rspec (= 3.4.0)
185
- sinatra
186
- sinatra-contrib
187
- test_after_commit (= 0.4.1)
188
- timecop (= 0.7.1)
189
- wwtd (~> 1.3.0)
190
-
191
- BUNDLED WITH
192
- 1.16.1
@@ -1,187 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- inst-jobs (0.13.4)
5
- after_transaction_commit (>= 1.0, < 3)
6
- rails (>= 4.2)
7
- redis (> 3.0)
8
- redis-scripting (~> 1.0.1)
9
- rufus-scheduler (~> 3.4)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- actioncable (5.0.5)
15
- actionpack (= 5.0.5)
16
- nio4r (>= 1.2, < 3.0)
17
- websocket-driver (~> 0.6.1)
18
- actionmailer (5.0.5)
19
- actionpack (= 5.0.5)
20
- actionview (= 5.0.5)
21
- activejob (= 5.0.5)
22
- mail (~> 2.5, >= 2.5.4)
23
- rails-dom-testing (~> 2.0)
24
- actionpack (5.0.5)
25
- actionview (= 5.0.5)
26
- activesupport (= 5.0.5)
27
- rack (~> 2.0)
28
- rack-test (~> 0.6.3)
29
- rails-dom-testing (~> 2.0)
30
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
- actionview (5.0.5)
32
- activesupport (= 5.0.5)
33
- builder (~> 3.1)
34
- erubis (~> 2.7.0)
35
- rails-dom-testing (~> 2.0)
36
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
37
- activejob (5.0.5)
38
- activesupport (= 5.0.5)
39
- globalid (>= 0.3.6)
40
- activemodel (5.0.5)
41
- activesupport (= 5.0.5)
42
- activerecord (5.0.5)
43
- activemodel (= 5.0.5)
44
- activesupport (= 5.0.5)
45
- arel (~> 7.0)
46
- activesupport (5.0.5)
47
- concurrent-ruby (~> 1.0, >= 1.0.2)
48
- i18n (~> 0.7)
49
- minitest (~> 5.1)
50
- tzinfo (~> 1.1)
51
- after_transaction_commit (2.0.0)
52
- activerecord (>= 5.0)
53
- arel (7.1.4)
54
- backports (3.8.0)
55
- builder (3.2.3)
56
- bump (0.5.4)
57
- byebug (9.0.6)
58
- coderay (1.1.1)
59
- concurrent-ruby (1.0.5)
60
- database_cleaner (1.6.1)
61
- diff-lcs (1.3)
62
- erubis (2.7.0)
63
- et-orbi (1.0.5)
64
- tzinfo
65
- globalid (0.4.0)
66
- activesupport (>= 4.2.0)
67
- i18n (0.8.6)
68
- loofah (2.0.3)
69
- nokogiri (>= 1.5.9)
70
- mail (2.6.6)
71
- mime-types (>= 1.16, < 4)
72
- method_source (0.8.2)
73
- mime-types (3.1)
74
- mime-types-data (~> 3.2015)
75
- mime-types-data (3.2016.0521)
76
- mini_portile2 (2.2.0)
77
- minitest (5.10.3)
78
- multi_json (1.12.1)
79
- mustermann (1.0.0.beta2)
80
- nio4r (2.1.0)
81
- nokogiri (1.8.0)
82
- mini_portile2 (~> 2.2.0)
83
- pg (0.21.0)
84
- pry (0.10.4)
85
- coderay (~> 1.1.0)
86
- method_source (~> 0.8.1)
87
- slop (~> 3.4)
88
- rack (2.0.3)
89
- rack-protection (2.0.0.beta2)
90
- rack
91
- rack-test (0.6.3)
92
- rack (>= 1.0)
93
- rails (5.0.5)
94
- actioncable (= 5.0.5)
95
- actionmailer (= 5.0.5)
96
- actionpack (= 5.0.5)
97
- actionview (= 5.0.5)
98
- activejob (= 5.0.5)
99
- activemodel (= 5.0.5)
100
- activerecord (= 5.0.5)
101
- activesupport (= 5.0.5)
102
- bundler (>= 1.3.0)
103
- railties (= 5.0.5)
104
- sprockets-rails (>= 2.0.0)
105
- rails-dom-testing (2.0.3)
106
- activesupport (>= 4.2.0)
107
- nokogiri (>= 1.6)
108
- rails-html-sanitizer (1.0.3)
109
- loofah (~> 2.0)
110
- railties (5.0.5)
111
- actionpack (= 5.0.5)
112
- activesupport (= 5.0.5)
113
- method_source
114
- rake (>= 0.8.7)
115
- thor (>= 0.18.1, < 2.0)
116
- rake (12.0.0)
117
- redis (3.3.3)
118
- redis-scripting (1.0.1)
119
- redis (>= 3.0)
120
- rspec (3.4.0)
121
- rspec-core (~> 3.4.0)
122
- rspec-expectations (~> 3.4.0)
123
- rspec-mocks (~> 3.4.0)
124
- rspec-core (3.4.4)
125
- rspec-support (~> 3.4.0)
126
- rspec-expectations (3.4.0)
127
- diff-lcs (>= 1.2.0, < 2.0)
128
- rspec-support (~> 3.4.0)
129
- rspec-mocks (3.4.1)
130
- diff-lcs (>= 1.2.0, < 2.0)
131
- rspec-support (~> 3.4.0)
132
- rspec-support (3.4.1)
133
- rufus-scheduler (3.4.2)
134
- et-orbi (~> 1.0)
135
- sinatra (2.0.0.beta2)
136
- mustermann (= 1.0.0.beta2)
137
- rack (~> 2.0)
138
- rack-protection (= 2.0.0.beta2)
139
- tilt (~> 2.0)
140
- sinatra-contrib (2.0.0.beta2)
141
- backports (>= 2.0)
142
- multi_json
143
- mustermann (= 1.0.0.beta2)
144
- rack-protection (= 2.0.0.beta2)
145
- rack-test
146
- sinatra (= 2.0.0.beta2)
147
- tilt (>= 1.3, < 3)
148
- slop (3.6.0)
149
- sprockets (3.7.1)
150
- concurrent-ruby (~> 1.0)
151
- rack (> 1, < 3)
152
- sprockets-rails (3.2.0)
153
- actionpack (>= 4.0)
154
- activesupport (>= 4.0)
155
- sprockets (>= 3.0.0)
156
- thor (0.19.4)
157
- thread_safe (0.3.6)
158
- tilt (2.0.8)
159
- timecop (0.7.1)
160
- tzinfo (1.2.3)
161
- thread_safe (~> 0.1)
162
- websocket-driver (0.6.5)
163
- websocket-extensions (>= 0.1.0)
164
- websocket-extensions (0.1.2)
165
- wwtd (1.3.0)
166
-
167
- PLATFORMS
168
- ruby
169
-
170
- DEPENDENCIES
171
- bump
172
- byebug
173
- database_cleaner (= 1.6.1)
174
- inst-jobs!
175
- pg
176
- pry
177
- rack-test
178
- rails (~> 5.0.0)
179
- rake
180
- rspec (= 3.4.0)
181
- sinatra (= 2.0.0.beta2)
182
- sinatra-contrib (= 2.0.0.beta2)
183
- timecop (= 0.7.1)
184
- wwtd (~> 1.3.0)
185
-
186
- BUNDLED WITH
187
- 1.15.3
@@ -1,187 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- inst-jobs (0.13.3)
5
- after_transaction_commit (~> 1.0)
6
- rails (>= 4.2)
7
- redis (> 3.0)
8
- redis-scripting (~> 1.0.1)
9
- rufus-scheduler (~> 3.4)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- actioncable (5.1.1)
15
- actionpack (= 5.1.1)
16
- nio4r (~> 2.0)
17
- websocket-driver (~> 0.6.1)
18
- actionmailer (5.1.1)
19
- actionpack (= 5.1.1)
20
- actionview (= 5.1.1)
21
- activejob (= 5.1.1)
22
- mail (~> 2.5, >= 2.5.4)
23
- rails-dom-testing (~> 2.0)
24
- actionpack (5.1.1)
25
- actionview (= 5.1.1)
26
- activesupport (= 5.1.1)
27
- rack (~> 2.0)
28
- rack-test (~> 0.6.3)
29
- rails-dom-testing (~> 2.0)
30
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
- actionview (5.1.1)
32
- activesupport (= 5.1.1)
33
- builder (~> 3.1)
34
- erubi (~> 1.4)
35
- rails-dom-testing (~> 2.0)
36
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
37
- activejob (5.1.1)
38
- activesupport (= 5.1.1)
39
- globalid (>= 0.3.6)
40
- activemodel (5.1.1)
41
- activesupport (= 5.1.1)
42
- activerecord (5.1.1)
43
- activemodel (= 5.1.1)
44
- activesupport (= 5.1.1)
45
- arel (~> 8.0)
46
- activesupport (5.1.1)
47
- concurrent-ruby (~> 1.0, >= 1.0.2)
48
- i18n (~> 0.7)
49
- minitest (~> 5.1)
50
- tzinfo (~> 1.1)
51
- after_transaction_commit (1.1.2)
52
- activerecord (>= 4.0)
53
- arel (8.0.0)
54
- backports (3.7.0)
55
- builder (3.2.3)
56
- bump (0.5.3)
57
- byebug (9.0.6)
58
- coderay (1.1.1)
59
- concurrent-ruby (1.0.5)
60
- database_cleaner (1.6.1)
61
- diff-lcs (1.3)
62
- erubi (1.6.0)
63
- et-orbi (1.0.3)
64
- tzinfo
65
- globalid (0.4.0)
66
- activesupport (>= 4.2.0)
67
- i18n (0.8.4)
68
- loofah (2.0.3)
69
- nokogiri (>= 1.5.9)
70
- mail (2.6.6)
71
- mime-types (>= 1.16, < 4)
72
- method_source (0.8.2)
73
- mime-types (3.1)
74
- mime-types-data (~> 3.2015)
75
- mime-types-data (3.2016.0521)
76
- mini_portile2 (2.2.0)
77
- minitest (5.10.2)
78
- multi_json (1.12.1)
79
- mustermann (1.0.0.beta2)
80
- nio4r (2.1.0)
81
- nokogiri (1.8.0)
82
- mini_portile2 (~> 2.2.0)
83
- pg (0.21.0)
84
- pry (0.10.4)
85
- coderay (~> 1.1.0)
86
- method_source (~> 0.8.1)
87
- slop (~> 3.4)
88
- rack (2.0.3)
89
- rack-protection (2.0.0.beta2)
90
- rack
91
- rack-test (0.6.3)
92
- rack (>= 1.0)
93
- rails (5.1.1)
94
- actioncable (= 5.1.1)
95
- actionmailer (= 5.1.1)
96
- actionpack (= 5.1.1)
97
- actionview (= 5.1.1)
98
- activejob (= 5.1.1)
99
- activemodel (= 5.1.1)
100
- activerecord (= 5.1.1)
101
- activesupport (= 5.1.1)
102
- bundler (>= 1.3.0, < 2.0)
103
- railties (= 5.1.1)
104
- sprockets-rails (>= 2.0.0)
105
- rails-dom-testing (2.0.3)
106
- activesupport (>= 4.2.0)
107
- nokogiri (>= 1.6)
108
- rails-html-sanitizer (1.0.3)
109
- loofah (~> 2.0)
110
- railties (5.1.1)
111
- actionpack (= 5.1.1)
112
- activesupport (= 5.1.1)
113
- method_source
114
- rake (>= 0.8.7)
115
- thor (>= 0.18.1, < 2.0)
116
- rake (12.0.0)
117
- redis (3.3.3)
118
- redis-scripting (1.0.1)
119
- redis (>= 3.0)
120
- rspec (3.4.0)
121
- rspec-core (~> 3.4.0)
122
- rspec-expectations (~> 3.4.0)
123
- rspec-mocks (~> 3.4.0)
124
- rspec-core (3.4.4)
125
- rspec-support (~> 3.4.0)
126
- rspec-expectations (3.4.0)
127
- diff-lcs (>= 1.2.0, < 2.0)
128
- rspec-support (~> 3.4.0)
129
- rspec-mocks (3.4.1)
130
- diff-lcs (>= 1.2.0, < 2.0)
131
- rspec-support (~> 3.4.0)
132
- rspec-support (3.4.1)
133
- rufus-scheduler (3.4.0)
134
- et-orbi (~> 1.0)
135
- sinatra (2.0.0.beta2)
136
- mustermann (= 1.0.0.beta2)
137
- rack (~> 2.0)
138
- rack-protection (= 2.0.0.beta2)
139
- tilt (~> 2.0)
140
- sinatra-contrib (2.0.0.beta2)
141
- backports (>= 2.0)
142
- multi_json
143
- mustermann (= 1.0.0.beta2)
144
- rack-protection (= 2.0.0.beta2)
145
- rack-test
146
- sinatra (= 2.0.0.beta2)
147
- tilt (>= 1.3, < 3)
148
- slop (3.6.0)
149
- sprockets (3.7.1)
150
- concurrent-ruby (~> 1.0)
151
- rack (> 1, < 3)
152
- sprockets-rails (3.2.0)
153
- actionpack (>= 4.0)
154
- activesupport (>= 4.0)
155
- sprockets (>= 3.0.0)
156
- thor (0.19.4)
157
- thread_safe (0.3.6)
158
- tilt (2.0.7)
159
- timecop (0.7.1)
160
- tzinfo (1.2.3)
161
- thread_safe (~> 0.1)
162
- websocket-driver (0.6.5)
163
- websocket-extensions (>= 0.1.0)
164
- websocket-extensions (0.1.2)
165
- wwtd (1.3.0)
166
-
167
- PLATFORMS
168
- ruby
169
-
170
- DEPENDENCIES
171
- bump
172
- byebug
173
- database_cleaner (= 1.6.1)
174
- inst-jobs!
175
- pg
176
- pry
177
- rack-test
178
- rails (~> 5.1.0)
179
- rake
180
- rspec (= 3.4.0)
181
- sinatra (= 2.0.0.beta2)
182
- sinatra-contrib (= 2.0.0.beta2)
183
- timecop (= 0.7.1)
184
- wwtd (~> 1.3.0)
185
-
186
- BUNDLED WITH
187
- 1.14.6