capistrano-sidekiq 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b617c393c8abe0fd6379444f85885ae53eab75f4dacb33a186b6b4d7d097d97
4
- data.tar.gz: af4b161e8f6131d85f6c12e1795f72bdec58d967dde832b9f1953efaf5245107
3
+ metadata.gz: 2f55ede23a48a3ff9319774a09692f01137ae02ef54b6f27bead18518650973c
4
+ data.tar.gz: 3587deeffde5524d5390e0fc60e474c0bf1c34c048422a15a30efc8cb5460ca2
5
5
  SHA512:
6
- metadata.gz: 6d1c9c37c0b8c61bbff72a2c1dc8fe236f7268e285771a0da2e8ab0ad20662b38643dd401448c203165e4311a60d093b19b49af484e57fba02516a83adaad49b
7
- data.tar.gz: 0c63285e974b438b066057e6b7090b8411b55212b11439ff811ab2dfb8c5ebb5f97a10098989fa11ac87e8dae37251c3a23ed324006327acef0ea34fc59cdf53
6
+ metadata.gz: 46b1223d92a931beed504100ed25debb4c1b5d0a98a0e60b279c0d283ac5356a5ed5c3d80b87dbe8220cc8faa60999ab3d1266147ff22d1968b8545e313a1f00
7
+ data.tar.gz: da0d5e2e30b0fefc4a1e37beae281bbbba52417fa4446f13bcff69bb395df9250945797f76a039ae5774574d24ca7b2d563c2f4013fa8726faaa00b3d66c857a
data/CHANGELOG.md CHANGED
@@ -1,117 +1,272 @@
1
1
  # Changelog
2
2
 
3
- ## 1.0.3
4
- - Add upstart support
5
- - Fix monit service name
3
+ ## [2.2.0](https://github.com/seuros/capistrano-sidekiq/tree/2.2.0) (2022-05-16)
6
4
 
7
- ## 1.0.2
8
- - Fix deployment flow hooks
5
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v2.1.0...2.2.0)
9
6
 
10
- ## 1.0.1
11
- - Add deploy failure handling @phillbaker
12
- - Support custom monit filename @zocoi
13
- - Systemd Integration @baierjan
14
- - Fix regression in sidekiq_roles variable
15
- - Fixed pidfile accounting per process @jsantos
16
- - Rubocop corrections for main task @jsantos
7
+ **Merged pull requests:**
17
8
 
18
- ## 1.0.0
9
+ - Allow the definition of service\_unit\_name [\#297](https://github.com/seuros/capistrano-sidekiq/pull/297) ([seuros](https://github.com/seuros))
10
+ - restore sidekiq unit env vars [\#295](https://github.com/seuros/capistrano-sidekiq/pull/295) ([tayagi-aim](https://github.com/tayagi-aim))
11
+ - Fix a typo in sidekiq:restart [\#294](https://github.com/seuros/capistrano-sidekiq/pull/294) ([hoppergee](https://github.com/hoppergee))
19
12
 
20
- - Prepend underscore before service name index @Tensho
21
- - Convert CHANGELOG to Markdown @Tensho
22
- - Drop support for capistrano 2.0 @Tensho
23
- - *BREAKING CHANGE* If people used custom monit template, they should adjust it to use pid_files variable instead of processes_pids. @Tensho
24
- - *BREAKING CHANGE* `:sidekiq_role` has been renamed to its plural form, `:sidekiq_roles`
13
+ ## [v2.1.0](https://github.com/seuros/capistrano-sidekiq/tree/v2.1.0) (2022-05-15)
25
14
 
26
- ## 0.20.0
15
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v2.0.0...v2.1.0)
27
16
 
28
- - Use new capistrano DSL for reenable tasks @Tensho
17
+ **Merged pull requests:**
29
18
 
30
- ## 0.10.0
19
+ - Fix \#253: $HOME is unexpanded in service unit file [\#291](https://github.com/seuros/capistrano-sidekiq/pull/291) ([nikochiko](https://github.com/nikochiko))
20
+ - Update Readme [\#287](https://github.com/seuros/capistrano-sidekiq/pull/287) ([lesliepoolman](https://github.com/lesliepoolman))
21
+ - Fixed sidekiq.service autostart in --user mode [\#285](https://github.com/seuros/capistrano-sidekiq/pull/285) ([michaelkhabarov](https://github.com/michaelkhabarov))
22
+ - README: Add section about older Systemd versions logging [\#284](https://github.com/seuros/capistrano-sidekiq/pull/284) ([64kramsystem](https://github.com/64kramsystem))
23
+ - Avoid using present? [\#282](https://github.com/seuros/capistrano-sidekiq/pull/282) ([frederikspang](https://github.com/frederikspang))
24
+ - Various systemd improvements - Multiple Process Support, Per Process Config, Proper Restarts with timeout and more [\#279](https://github.com/seuros/capistrano-sidekiq/pull/279) ([jclusso](https://github.com/jclusso))
25
+ - Use File.join for systemd file path [\#278](https://github.com/seuros/capistrano-sidekiq/pull/278) ([AndrewSverdrup](https://github.com/AndrewSverdrup))
26
+ - Fix bug in switch\_user and dry up common methods to a helpers module [\#272](https://github.com/seuros/capistrano-sidekiq/pull/272) ([chriscz](https://github.com/chriscz))
27
+ - Update monit integration against Sidekiq 6.0 [\#271](https://github.com/seuros/capistrano-sidekiq/pull/271) ([7up4](https://github.com/7up4))
28
+ - Added sidekiq\_service\_templates\_path to manage custom systemd templates [\#265](https://github.com/seuros/capistrano-sidekiq/pull/265) ([farnsworth](https://github.com/farnsworth))
29
+ - Add sidekiq\_config, sidekiq\_concurrency, and sidekiq\_queue support to systemd [\#262](https://github.com/seuros/capistrano-sidekiq/pull/262) ([ayn](https://github.com/ayn))
31
30
 
32
- - Fix Monit tasks
33
- - `sidekiq:stop` task perpertually callable @Tensho
31
+ ## [v2.0.0](https://github.com/seuros/capistrano-sidekiq/tree/v2.0.0) (2020-12-19)
34
32
 
35
- ## 0.5.4
33
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v2.0.0.beta5...v2.0.0)
36
34
 
37
- - Add support for custom count of processes per host in monit task @okoriko
35
+ **Merged pull requests:**
38
36
 
39
- ## 0.5.3
37
+ - Upstart update [\#261](https://github.com/seuros/capistrano-sidekiq/pull/261) ([duhast](https://github.com/duhast))
40
38
 
41
- - Custom count of processes per each host
39
+ ## [v2.0.0.beta5](https://github.com/seuros/capistrano-sidekiq/tree/v2.0.0.beta5) (2020-06-25)
42
40
 
43
- ## 0.5.0
41
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v2.0.0.beta4...v2.0.0.beta5)
44
42
 
45
- - Multiple processes @mrsimo
43
+ **Merged pull requests:**
46
44
 
47
- ## 0.3.9
45
+ - Minimal working Upstart plugin [\#255](https://github.com/seuros/capistrano-sidekiq/pull/255) ([duhast](https://github.com/duhast))
46
+ - Capistrano rbenv uses bundle instead of bundler [\#252](https://github.com/seuros/capistrano-sidekiq/pull/252) ([uxxman](https://github.com/uxxman))
48
47
 
49
- - Restore daemon flag from Monit template
48
+ ## [v2.0.0.beta4](https://github.com/seuros/capistrano-sidekiq/tree/v2.0.0.beta4) (2020-06-08)
50
49
 
51
- ## 0.3.8
50
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v2.0.0.beta3...v2.0.0.beta4)
52
51
 
53
- - Update monit template: use su instead of sudo / permit all Sidekiq options @bensie
54
- - Unmonitor monit while deploy @Saicheg
52
+ **Merged pull requests:**
55
53
 
56
- ## 0.3.7
54
+ - Fix undefined method as error [\#249](https://github.com/seuros/capistrano-sidekiq/pull/249) ([kyoshidajp](https://github.com/kyoshidajp))
57
55
 
58
- - Fix capistrano2 task @tribble
59
- - Run Sidekiq as daemon from Monit @dpaluy
56
+ ## [v2.0.0.beta3](https://github.com/seuros/capistrano-sidekiq/tree/v2.0.0.beta3) (2020-05-26)
60
57
 
61
- ## 0.3.5
58
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v2.0.0.beta2...v2.0.0.beta3)
62
59
 
63
- - Added `:sidekiq_tag` for capistrano 2 @OscarBarrett
60
+ **Merged pull requests:**
64
61
 
65
- ## 0.3.4
62
+ - Append logs [\#247](https://github.com/seuros/capistrano-sidekiq/pull/247) ([Paprikas](https://github.com/Paprikas))
63
+ - Add "loginctl enable-linger" command to sidekiq systemd install task [\#246](https://github.com/seuros/capistrano-sidekiq/pull/246) ([Paprikas](https://github.com/Paprikas))
64
+ - Setup error output for systemd [\#245](https://github.com/seuros/capistrano-sidekiq/pull/245) ([Paprikas](https://github.com/Paprikas))
65
+ - Use StandardOutput for logging [\#244](https://github.com/seuros/capistrano-sidekiq/pull/244) ([Paprikas](https://github.com/Paprikas))
66
66
 
67
- - Fix bug in `sidekiq:start` for capistrano 2 task
67
+ ## [v2.0.0.beta2](https://github.com/seuros/capistrano-sidekiq/tree/v2.0.0.beta2) (2020-05-25)
68
68
 
69
- ## 0.3.3
69
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v2.0.0.beta1...v2.0.0.beta2)
70
70
 
71
- - `sidekiq:restart` after `deploy:restart` added to default hooks
71
+ **Merged pull requests:**
72
72
 
73
- ## 0.3.2
73
+ - Add sidekiq\_service\_unit\_env\_vars option to pass Environment variable… [\#243](https://github.com/seuros/capistrano-sidekiq/pull/243) ([Paprikas](https://github.com/Paprikas))
74
74
 
75
- - `:sidekiq_queue` accept an array
75
+ ## [v2.0.0.beta1](https://github.com/seuros/capistrano-sidekiq/tree/v2.0.0.beta1) (2020-05-12)
76
76
 
77
- ## 0.3.1
77
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v1.0.3...v2.0.0.beta1)
78
78
 
79
- - Fix logs @rottman
80
- - Add concurrency option support @ungsophy
79
+ **Merged pull requests:**
81
80
 
82
- ## 0.3.0
81
+ - Release 2.0.0 [\#236](https://github.com/seuros/capistrano-sidekiq/pull/236) ([seuros](https://github.com/seuros))
83
82
 
84
- - Fix monit task @andreygerasimchuk
83
+ ## [v1.0.3](https://github.com/seuros/capistrano-sidekiq/tree/v1.0.3) (2019-09-02)
85
84
 
86
- ## 0.2.9
85
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v1.0.2...v1.0.3)
87
86
 
88
- - Check if current directory exist @alexdunae
87
+ **Merged pull requests:**
89
88
 
90
- ## 0.2.8
89
+ - Point readers towards enable lingering for systemd [\#230](https://github.com/seuros/capistrano-sidekiq/pull/230) ([creativetags](https://github.com/creativetags))
90
+ - Update README\#Multiple processes example [\#215](https://github.com/seuros/capistrano-sidekiq/pull/215) ([tamaloa](https://github.com/tamaloa))
91
+ - Add upstart support for start, stop, and quiet [\#208](https://github.com/seuros/capistrano-sidekiq/pull/208) ([tmiller](https://github.com/tmiller))
92
+ - Fix monit config file name missing application [\#205](https://github.com/seuros/capistrano-sidekiq/pull/205) ([xiewenwei](https://github.com/xiewenwei))
91
93
 
92
- - Added `:sidekiq_queue` & `:sidekiq_config`
94
+ ## [v1.0.2](https://github.com/seuros/capistrano-sidekiq/tree/v1.0.2) (2018-04-12)
93
95
 
94
- ## 0.2.7
96
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v1.0.1...v1.0.2)
95
97
 
96
- - Signal usage @penso
98
+ ## [v1.0.1](https://github.com/seuros/capistrano-sidekiq/tree/v1.0.1) (2018-04-04)
97
99
 
98
- ## 0.2.6
100
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v1.0.0...v1.0.1)
99
101
 
100
- - `sidekiq:start` check if sidekiq is running
102
+ **Merged pull requests:**
101
103
 
102
- ## 0.2.5
104
+ - Fix accounting of pidfiles per process \(when using multiple processes\) [\#197](https://github.com/seuros/capistrano-sidekiq/pull/197) ([jsantos](https://github.com/jsantos))
105
+ - fix fail rolling restart task [\#196](https://github.com/seuros/capistrano-sidekiq/pull/196) ([idekeita](https://github.com/idekeita))
106
+ - README.md - simple edit, highlight known issue with cap 3 [\#192](https://github.com/seuros/capistrano-sidekiq/pull/192) ([westonplatter](https://github.com/westonplatter))
107
+ - Systemd integration [\#171](https://github.com/seuros/capistrano-sidekiq/pull/171) ([baierjan](https://github.com/baierjan))
108
+ - update README with instructions for prepending 'bundle exec' [\#143](https://github.com/seuros/capistrano-sidekiq/pull/143) ([mistidoi](https://github.com/mistidoi))
109
+ - Add deploy failure handling to cap v2 and v3. [\#135](https://github.com/seuros/capistrano-sidekiq/pull/135) ([phillbaker](https://github.com/phillbaker))
110
+ - Support custom monit filename [\#132](https://github.com/seuros/capistrano-sidekiq/pull/132) ([zocoi](https://github.com/zocoi))
103
111
 
104
- - Bug fixes
112
+ ## [v1.0.0](https://github.com/seuros/capistrano-sidekiq/tree/v1.0.0) (2018-01-24)
105
113
 
106
- ## 0.2.4
114
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.20.0...v1.0.0)
107
115
 
108
- - Fast deploy with `:sidekiq_run_in_background`
116
+ **Merged pull requests:**
109
117
 
110
- ## 0.2.3
118
+ - Spring Cleanup [\#190](https://github.com/seuros/capistrano-sidekiq/pull/190) ([Tensho](https://github.com/Tensho))
119
+ - Convert CHANGELOG to Markdown + Add Unreleased Section [\#189](https://github.com/seuros/capistrano-sidekiq/pull/189) ([Tensho](https://github.com/Tensho))
120
+ - Prepend \_ Before Service Name Index [\#184](https://github.com/seuros/capistrano-sidekiq/pull/184) ([Tensho](https://github.com/Tensho))
121
+ - Christmas Eve Cleaning 🎅 [\#183](https://github.com/seuros/capistrano-sidekiq/pull/183) ([Tensho](https://github.com/Tensho))
111
122
 
112
- - Added monit tasks (alpha)
123
+ ## [v0.20.0](https://github.com/seuros/capistrano-sidekiq/tree/v0.20.0) (2017-08-01)
113
124
 
114
- ## 0.2.0
125
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.10.0...v0.20.0)
115
126
 
116
- - Added `sidekiq:rolling_restart` @jlecour
127
+ **Merged pull requests:**
117
128
 
129
+ - Use new capistrano DSL for reenable tasks [\#177](https://github.com/seuros/capistrano-sidekiq/pull/177) ([Tensho](https://github.com/Tensho))
130
+
131
+ ## [v0.10.0](https://github.com/seuros/capistrano-sidekiq/tree/v0.10.0) (2016-11-25)
132
+
133
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.5.4...v0.10.0)
134
+
135
+ **Merged pull requests:**
136
+
137
+ - add documentation; add note to ensure shared/tmp/pids folder exists i… [\#168](https://github.com/seuros/capistrano-sidekiq/pull/168) ([elliotwesoff](https://github.com/elliotwesoff))
138
+ - Make sidekiq:stop task perpetually callable [\#164](https://github.com/seuros/capistrano-sidekiq/pull/164) ([williamn](https://github.com/williamn))
139
+ - Add missing monit default config options to README [\#155](https://github.com/seuros/capistrano-sidekiq/pull/155) ([kirrmann](https://github.com/kirrmann))
140
+ - Documenting sidekiq\_service\_name config option [\#153](https://github.com/seuros/capistrano-sidekiq/pull/153) ([bendilley](https://github.com/bendilley))
141
+ - Fixes identation and Increase documentation with info about :sidekiq\_config [\#131](https://github.com/seuros/capistrano-sidekiq/pull/131) ([ricardokdz](https://github.com/ricardokdz))
142
+ - Respect both local and global puma\_user setting everywhere [\#122](https://github.com/seuros/capistrano-sidekiq/pull/122) ([jhollinger](https://github.com/jhollinger))
143
+
144
+ ## [v0.5.4](https://github.com/seuros/capistrano-sidekiq/tree/v0.5.4) (2015-10-27)
145
+
146
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.5.3...v0.5.4)
147
+
148
+ **Merged pull requests:**
149
+
150
+ - Change pidfile handling, always add index to pidfile name [\#116](https://github.com/seuros/capistrano-sidekiq/pull/116) ([w1mvy](https://github.com/w1mvy))
151
+ - Move Contributors to separate file. [\#115](https://github.com/seuros/capistrano-sidekiq/pull/115) ([lpaulmp](https://github.com/lpaulmp))
152
+ - Monit configuration respects options\_per\_process [\#113](https://github.com/seuros/capistrano-sidekiq/pull/113) ([kazjote](https://github.com/kazjote))
153
+ - Capistrano 2 fixes [\#109](https://github.com/seuros/capistrano-sidekiq/pull/109) ([wingrunr21](https://github.com/wingrunr21))
154
+ - Use SSHKit command\_map [\#104](https://github.com/seuros/capistrano-sidekiq/pull/104) ([hbin](https://github.com/hbin))
155
+ - Add notice that the pty bug only applies to Capistrano 3. [\#101](https://github.com/seuros/capistrano-sidekiq/pull/101) ([nTraum](https://github.com/nTraum))
156
+ - Add support for different number of processes per host on monit.cap [\#100](https://github.com/seuros/capistrano-sidekiq/pull/100) ([okoriko](https://github.com/okoriko))
157
+ - intial support for sidekiq\_user [\#97](https://github.com/seuros/capistrano-sidekiq/pull/97) ([mcb](https://github.com/mcb))
158
+
159
+ ## [v0.5.3](https://github.com/seuros/capistrano-sidekiq/tree/v0.5.3) (2015-06-25)
160
+
161
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.5.2...v0.5.3)
162
+
163
+ **Merged pull requests:**
164
+
165
+ - Refactored template\_sidekiq method [\#90](https://github.com/seuros/capistrano-sidekiq/pull/90) ([rstrobl](https://github.com/rstrobl))
166
+ - added ability to operate without sudo [\#89](https://github.com/seuros/capistrano-sidekiq/pull/89) ([dreyks](https://github.com/dreyks))
167
+ - Revert "Add nohup when executing start\_sidekiq command, for a problem… [\#88](https://github.com/seuros/capistrano-sidekiq/pull/88) ([seuros](https://github.com/seuros))
168
+ - Add nohup when executing start\_sidekiq command, for a problem with pty. [\#76](https://github.com/seuros/capistrano-sidekiq/pull/76) ([maruware](https://github.com/maruware))
169
+ - implemented ability to split sidekiq\_roles by count of sidekiq-processes [\#45](https://github.com/seuros/capistrano-sidekiq/pull/45) ([alexyakubenko](https://github.com/alexyakubenko))
170
+
171
+ ## [v0.5.2](https://github.com/seuros/capistrano-sidekiq/tree/v0.5.2) (2015-03-20)
172
+
173
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.5.1...v0.5.2)
174
+
175
+ **Merged pull requests:**
176
+
177
+ - Set sidekiq\_concurrency default value for cap 2 \(improves pr \#72\). [\#74](https://github.com/seuros/capistrano-sidekiq/pull/74) ([derSascha](https://github.com/derSascha))
178
+
179
+ ## [v0.5.1](https://github.com/seuros/capistrano-sidekiq/tree/v0.5.1) (2015-03-18)
180
+
181
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.5.0...v0.5.1)
182
+
183
+ **Merged pull requests:**
184
+
185
+ - Support sidekiq\_concurrency option for capistrano 2 [\#72](https://github.com/seuros/capistrano-sidekiq/pull/72) ([mrsimo](https://github.com/mrsimo))
186
+
187
+ ## [v0.5.0](https://github.com/seuros/capistrano-sidekiq/tree/v0.5.0) (2015-03-18)
188
+
189
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.4.0...v0.5.0)
190
+
191
+ **Merged pull requests:**
192
+
193
+ - Options per process [\#70](https://github.com/seuros/capistrano-sidekiq/pull/70) ([mrsimo](https://github.com/mrsimo))
194
+ - Try execute on the monit.conf mv command [\#69](https://github.com/seuros/capistrano-sidekiq/pull/69) ([bencrouse](https://github.com/bencrouse))
195
+ - Update sidekiq.cap [\#68](https://github.com/seuros/capistrano-sidekiq/pull/68) ([raulbrito](https://github.com/raulbrito))
196
+ - bug fix for generator. [\#66](https://github.com/seuros/capistrano-sidekiq/pull/66) ([zshannon](https://github.com/zshannon))
197
+ - Fix Readme Issues [\#63](https://github.com/seuros/capistrano-sidekiq/pull/63) ([ChuckJHardy](https://github.com/ChuckJHardy))
198
+ - Set default option for sidekiq queue in capistrano 2 script [\#62](https://github.com/seuros/capistrano-sidekiq/pull/62) ([brain-geek](https://github.com/brain-geek))
199
+ - Update Cap2 Defaults to include config file [\#61](https://github.com/seuros/capistrano-sidekiq/pull/61) ([davidlesches](https://github.com/davidlesches))
200
+ - add customizing the monit templates for sidekiq [\#60](https://github.com/seuros/capistrano-sidekiq/pull/60) ([SammyLin](https://github.com/SammyLin))
201
+ - Add queues setup in capistrano2 task [\#57](https://github.com/seuros/capistrano-sidekiq/pull/57) ([brain-geek](https://github.com/brain-geek))
202
+
203
+ ## [v0.4.0](https://github.com/seuros/capistrano-sidekiq/tree/v0.4.0) (2014-11-12)
204
+
205
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.3.8...v0.4.0)
206
+
207
+ **Merged pull requests:**
208
+
209
+ - Test is Sidekiq actually running when starting with Capistrano 2 [\#54](https://github.com/seuros/capistrano-sidekiq/pull/54) ([Envek](https://github.com/Envek))
210
+ - use release\_path instead of current\_path [\#50](https://github.com/seuros/capistrano-sidekiq/pull/50) ([flyerhzm](https://github.com/flyerhzm))
211
+ - Typo [\#48](https://github.com/seuros/capistrano-sidekiq/pull/48) ([binyamindavid](https://github.com/binyamindavid))
212
+ - Fix descriptions of monit tasks [\#47](https://github.com/seuros/capistrano-sidekiq/pull/47) ([jgeiger](https://github.com/jgeiger))
213
+
214
+ ## [v0.3.8](https://github.com/seuros/capistrano-sidekiq/tree/v0.3.8) (2014-09-22)
215
+
216
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.3.7...v0.3.8)
217
+
218
+ **Merged pull requests:**
219
+
220
+ - Improve @bensie pull request + unmonitor monit while deploy [\#46](https://github.com/seuros/capistrano-sidekiq/pull/46) ([Saicheg](https://github.com/Saicheg))
221
+
222
+ ## [v0.3.7](https://github.com/seuros/capistrano-sidekiq/tree/v0.3.7) (2014-09-01)
223
+
224
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.3.6...v0.3.7)
225
+
226
+ **Merged pull requests:**
227
+
228
+ - Start Sidekiq as daemon from Monit [\#40](https://github.com/seuros/capistrano-sidekiq/pull/40) ([dpaluy](https://github.com/dpaluy))
229
+ - Sidekiq is properly restarted after a crash when deploying with Capsitrano2 [\#39](https://github.com/seuros/capistrano-sidekiq/pull/39) ([tribble](https://github.com/tribble))
230
+
231
+ ## [v0.3.6](https://github.com/seuros/capistrano-sidekiq/tree/v0.3.6) (2014-08-08)
232
+
233
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.3.5...v0.3.6)
234
+
235
+ **Merged pull requests:**
236
+
237
+ - If :sidekiq\_config is set, Monit template should use it to start the ser... [\#35](https://github.com/seuros/capistrano-sidekiq/pull/35) ([joshmyers](https://github.com/joshmyers))
238
+ - replace deploy:restart with deploy:publishing for capistrano 3.1 [\#34](https://github.com/seuros/capistrano-sidekiq/pull/34) ([flyerhzm](https://github.com/flyerhzm))
239
+ - Fix: test with spaces ignores within [\#33](https://github.com/seuros/capistrano-sidekiq/pull/33) ([rogercampos](https://github.com/rogercampos))
240
+ - Added \_cset for :sidekiq\_tag [\#32](https://github.com/seuros/capistrano-sidekiq/pull/32) ([OscarBarrett](https://github.com/OscarBarrett))
241
+
242
+ ## [v0.3.5](https://github.com/seuros/capistrano-sidekiq/tree/v0.3.5) (2014-07-25)
243
+
244
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.3.4...v0.3.5)
245
+
246
+ **Merged pull requests:**
247
+
248
+ - Allow use of sidekiq\_tag for capistrano2 [\#30](https://github.com/seuros/capistrano-sidekiq/pull/30) ([OscarBarrett](https://github.com/OscarBarrett))
249
+
250
+ ## [v0.3.4](https://github.com/seuros/capistrano-sidekiq/tree/v0.3.4) (2014-07-09)
251
+
252
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/v0.1.0...v0.3.4)
253
+
254
+ **Merged pull requests:**
255
+
256
+ - Added concurrency option [\#26](https://github.com/seuros/capistrano-sidekiq/pull/26) ([ungsophy](https://github.com/ungsophy))
257
+ - Fix bug with process index in monit task [\#21](https://github.com/seuros/capistrano-sidekiq/pull/21) ([0x616E676572](https://github.com/0x616E676572))
258
+ - You can now use signals to quiet/stop sidekiq, much faster. [\#18](https://github.com/seuros/capistrano-sidekiq/pull/18) ([penso](https://github.com/penso))
259
+ - Check that current\_path exists before stopping [\#16](https://github.com/seuros/capistrano-sidekiq/pull/16) ([alexdunae](https://github.com/alexdunae))
260
+ - search pid files in correct directory [\#12](https://github.com/seuros/capistrano-sidekiq/pull/12) ([levinalex](https://github.com/levinalex))
261
+ - Rolling restart [\#7](https://github.com/seuros/capistrano-sidekiq/pull/7) ([jlecour](https://github.com/jlecour))
262
+
263
+ ## [v0.1.0](https://github.com/seuros/capistrano-sidekiq/tree/v0.1.0) (2014-03-24)
264
+
265
+ [Full Changelog](https://github.com/seuros/capistrano-sidekiq/compare/07b9d97f5bcf08af43baec0924bb088a6486f31c...v0.1.0)
266
+
267
+ **Merged pull requests:**
268
+
269
+ - Cleaner version checking [\#6](https://github.com/seuros/capistrano-sidekiq/pull/6) ([ghost](https://github.com/ghost))
270
+ - More robust version checking [\#4](https://github.com/seuros/capistrano-sidekiq/pull/4) ([jlecour](https://github.com/jlecour))
271
+ - More explicit start command [\#3](https://github.com/seuros/capistrano-sidekiq/pull/3) ([jlecour](https://github.com/jlecour))
272
+ - Improve pid and log files settings [\#1](https://github.com/seuros/capistrano-sidekiq/pull/1) ([jlecour](https://github.com/jlecour))
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in capistrano-sidekiq.gemspec
4
4
  gemspec
5
+
6
+ gem "bump", "~> 0.10.0"
7
+
8
+ gem "github_changelog_generator", "~> 1.16"
data/Rakefile CHANGED
@@ -1 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'github_changelog_generator/task'
3
+
4
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
5
+ config.user = 'seuros'
6
+ config.project = 'capistrano-sidekiq'
7
+ config.issues = false
8
+ config.future_release = '2.2.0'
9
+ end
@@ -3,7 +3,7 @@ module Capistrano
3
3
  include Sidekiq::Helpers
4
4
 
5
5
  def set_defaults
6
- set_if_empty :sidekiq_service_unit_name, 'sidekiq'
6
+ set_if_empty :sidekiq_service_unit_name, 'sidekiq' # This will change in version 3.0.0 to {application}-sidekiq
7
7
  set_if_empty :sidekiq_service_unit_user, :user # :system
8
8
  set_if_empty :sidekiq_enable_lingering, true
9
9
  set_if_empty :sidekiq_lingering_user, nil
@@ -1,13 +1,15 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Capistrano
2
4
  class Sidekiq::Upstart < Capistrano::Plugin
3
5
  include Sidekiq::Helpers
4
6
 
5
7
  def set_defaults
6
- set_if_empty :sidekiq_service_unit_name, 'sidekiq'
8
+ set_if_empty :sidekiq_service_unit_name, 'sidekiq' # This will change in version 3.0.0 to {application}-sidekiq
7
9
  end
8
10
 
9
11
  def define_tasks
10
- eval_rakefile File.expand_path('../../tasks/upstart.rake', __FILE__)
12
+ eval_rakefile File.expand_path('../tasks/upstart.rake', __dir__)
11
13
  end
12
14
  end
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- SidekiqVERSION = '2.1.0'
2
+ SidekiqVERSION = '2.2.0'
3
3
  end
@@ -1,7 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  git_plugin = self
2
4
 
3
5
  namespace :sidekiq do
4
-
5
6
  standard_actions = {
6
7
  start: 'Start Sidekiq',
7
8
  stop: 'Stop Sidekiq (graceful shutdown within timeout, put unfinished tasks back to Redis)',
@@ -30,11 +31,11 @@ namespace :sidekiq do
30
31
  # get running workers
31
32
  while (running.nil? || running > 0) && git_plugin.duration(start_time) < 30 do
32
33
  command_args =
33
- if fetch(:sidekiq_service_unit_user) == :system
34
- [:sudo, 'systemd-cgls']
35
- else
36
- ['systemd-clgs', '--user']
37
- end
34
+ if fetch(:sidekiq_service_unit_user) == :system
35
+ [:sudo, 'systemd-cgls']
36
+ else
37
+ ['systemd-cgls', '--user']
38
+ end
38
39
  # need to pipe through tr -cd... to strip out systemd colors or you
39
40
  # get log error messages for non UTF-8 characters.
40
41
  command_args.push(
@@ -85,7 +86,7 @@ namespace :sidekiq do
85
86
  git_plugin.systemctl_command(:enable)
86
87
 
87
88
  if fetch(:sidekiq_service_unit_user) != :system && fetch(:sidekiq_enable_lingering)
88
- execute :loginctl, "enable-linger", fetch(:sidekiq_lingering_user)
89
+ execute :loginctl, 'enable-linger', fetch(:sidekiq_lingering_user)
89
90
  end
90
91
  end
91
92
  end
@@ -120,10 +121,10 @@ namespace :sidekiq do
120
121
  def fetch_systemd_unit_path
121
122
  if fetch(:sidekiq_service_unit_user) == :system
122
123
  # if the path is not standard `set :service_unit_path`
123
- "/etc/systemd/system/"
124
+ '/etc/systemd/system/'
124
125
  else
125
126
  home_dir = backend.capture :pwd
126
- File.join(home_dir, ".config", "systemd", "user")
127
+ File.join(home_dir, '.config', 'systemd', 'user')
127
128
  end
128
129
  end
129
130
 
@@ -133,9 +134,9 @@ namespace :sidekiq do
133
134
  File.join(local_template_directory, "#{fetch(:sidekiq_service_unit_name)}.service.capistrano.erb"),
134
135
  File.join(local_template_directory, 'sidekiq.service.capistrano.erb'),
135
136
  File.expand_path(
136
- File.join(*%w[.. .. .. generators capistrano sidekiq systemd templates sidekiq.service.capistrano.erb]),
137
- __FILE__
138
- ),
137
+ File.join(*%w[.. .. .. generators capistrano sidekiq systemd templates sidekiq.service.capistrano.erb]),
138
+ __FILE__
139
+ )
139
140
  ]
140
141
  template_path = search_paths.detect { |path| File.file?(path) }
141
142
  template = File.read(template_path)
@@ -147,18 +148,16 @@ namespace :sidekiq do
147
148
  systemd_path = fetch(:service_unit_path, fetch_systemd_unit_path)
148
149
  systemd_file_name = File.join(systemd_path, sidekiq_service_file_name)
149
150
 
150
- if fetch(:sidekiq_service_unit_user) == :user
151
- backend.execute :mkdir, "-p", systemd_path
152
- end
151
+ backend.execute :mkdir, '-p', systemd_path if fetch(:sidekiq_service_unit_user) == :user
153
152
 
154
153
  temp_file_name = File.join('/tmp', sidekiq_service_file_name)
155
154
  backend.upload!(StringIO.new(ctemplate), temp_file_name)
156
155
  if fetch(:sidekiq_service_unit_user) == :system
157
156
  backend.execute :sudo, :mv, temp_file_name, systemd_file_name
158
- backend.execute :sudo, :systemctl, "daemon-reload"
157
+ backend.execute :sudo, :systemctl, 'daemon-reload'
159
158
  else
160
159
  backend.execute :mv, temp_file_name, systemd_file_name
161
- backend.execute :systemctl, "--user", "daemon-reload"
160
+ backend.execute :systemctl, '--user', 'daemon-reload'
162
161
  end
163
162
  end
164
163
 
@@ -188,7 +187,7 @@ namespace :sidekiq do
188
187
 
189
188
  def delete_systemd_config_symlink(process)
190
189
  config_link_path = File.join(
191
- fetch(:deploy_to), 'shared', 'sidekiq_systemd',
190
+ fetch(:deploy_to), 'shared', 'sidekiq_systemd',
192
191
  sidekiq_systemd_config_name(process)
193
192
  )
194
193
  backend.execute :rm, config_link_path, raise_on_non_zero_exit: false
@@ -197,7 +196,7 @@ namespace :sidekiq do
197
196
  def systemctl_command(*args, process: nil)
198
197
  execute_array =
199
198
  if fetch(:sidekiq_service_unit_user) == :system
200
- [:sudo, :systemctl]
199
+ %i[sudo systemctl]
201
200
  else
202
201
  [:systemctl, '--user']
203
202
  end
@@ -206,25 +205,22 @@ namespace :sidekiq do
206
205
  execute_array.push(
207
206
  *args, sidekiq_service_unit_name(process: process)
208
207
  ).flatten
209
- backend.execute(*execute_array, raise_on_non_zero_exit: false)
210
208
  else
211
209
  execute_array.push(*args, sidekiq_service_unit_name).flatten
212
- backend.execute(*execute_array, raise_on_non_zero_exit: false)
213
210
  end
211
+ backend.execute(*execute_array, raise_on_non_zero_exit: false)
214
212
  end
215
213
 
216
214
  def quiet_sidekiq
217
215
  systemctl_command(:kill, '-s', :TSTP)
218
216
  end
219
217
 
220
- def switch_user(role)
218
+ def switch_user(role, &block)
221
219
  su_user = sidekiq_user
222
220
  if su_user != role.user
223
221
  yield
224
222
  else
225
- backend.as su_user do
226
- yield
227
- end
223
+ backend.as su_user, &block
228
224
  end
229
225
  end
230
226
 
@@ -241,16 +237,12 @@ namespace :sidekiq do
241
237
  fetch(:deploy_to), 'shared', 'sidekiq_systemd',
242
238
  sidekiq_systemd_config_name
243
239
  )
244
- "--config #{config}"
245
- else
246
- "--config #{config}"
247
240
  end
241
+ "--config #{config}"
248
242
  end
249
243
 
250
244
  def sidekiq_concurrency
251
- if fetch(:sidekiq_concurrency)
252
- "--concurrency #{fetch(:sidekiq_concurrency)}"
253
- end
245
+ "--concurrency #{fetch(:sidekiq_concurrency)}" if fetch(:sidekiq_concurrency)
254
246
  end
255
247
 
256
248
  def sidekiq_processes
@@ -264,14 +256,16 @@ namespace :sidekiq do
264
256
  end
265
257
 
266
258
  def sidekiq_service_file_name
267
- "#{fetch(:sidekiq_service_unit_name)}@.service"
259
+ "#{fetch(:sidekiq_service_unit_name)}.service"
268
260
  end
269
261
 
270
262
  def sidekiq_service_unit_name(process: nil)
271
263
  if process
272
264
  "#{fetch(:sidekiq_service_unit_name)}@#{process}"
273
- else
265
+ elsif sidekiq_processes > 1
274
266
  "#{fetch(:sidekiq_service_unit_name)}@{1..#{sidekiq_processes}}"
267
+ else
268
+ fetch(:sidekiq_service_unit_name)
275
269
  end
276
270
  end
277
271
 
@@ -296,5 +290,4 @@ namespace :sidekiq do
296
290
  def duration(start_time)
297
291
  Process.clock_gettime(Process::CLOCK_MONOTONIC) - start_time
298
292
  end
299
-
300
293
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  git_plugin = self
2
4
 
3
5
  SUPPRESS_FAILURE = %w[|| echo NO_RUNNING_INSTANCE].freeze
@@ -43,7 +45,8 @@ namespace :sidekiq do
43
45
  task :uninstall do
44
46
  on roles fetch(:sidekiq_roles) do |role|
45
47
  git_plugin.switch_user(role) do
46
- execute :rm, '-f', File.join(fetch(:service_unit_path, fetch_upstart_unit_path), fetch(:sidekiq_service_unit_name))
48
+ execute :rm, '-f',
49
+ File.join(fetch(:service_unit_path, fetch_upstart_unit_path), fetch(:sidekiq_service_unit_name))
47
50
  end
48
51
  end
49
52
  end
@@ -58,7 +61,7 @@ namespace :sidekiq do
58
61
  def fetch_upstart_unit_path
59
62
  if fetch(:sidekiq_service_unit_user) == :system
60
63
  # if the path is not standard `set :service_unit_path`
61
- "/etc/init"
64
+ '/etc/init'
62
65
  else
63
66
  home_dir = backend.capture :pwd
64
67
  File.join(home_dir, '.config', 'upstart')
@@ -70,7 +73,7 @@ namespace :sidekiq do
70
73
  File.expand_path(
71
74
  File.join(*%w[.. .. .. generators capistrano sidekiq upstart templates sidekiq.conf.erb]),
72
75
  __FILE__
73
- ),
76
+ )
74
77
  ]
75
78
  template_path = search_paths.detect { |path| File.file?(path) }
76
79
  template = File.read(template_path)
@@ -81,25 +84,21 @@ namespace :sidekiq do
81
84
  ctemplate = compiled_template
82
85
  upstart_path = fetch(:service_unit_path, fetch_upstart_unit_path)
83
86
 
84
- if fetch(:sidekiq_service_unit_user) != :system
85
- backend.execute :mkdir, "-p", upstart_path
86
- end
87
+ backend.execute :mkdir, '-p', upstart_path if fetch(:sidekiq_service_unit_user) != :system
87
88
  conf_filename = "#{fetch :sidekiq_service_unit_name}.conf"
88
89
  backend.upload!(
89
90
  StringIO.new(ctemplate),
90
91
  "/tmp/#{conf_filename}"
91
92
  )
93
+ backend.execute :sudo, :mv, "/tmp/#{conf_filename}", "#{upstart_path}/#{conf_filename}"
92
94
  if fetch(:sidekiq_service_unit_user) == :system
93
- backend.execute :sudo, :mv, "/tmp/#{conf_filename}", "#{upstart_path}/#{conf_filename}"
94
- backend.execute :sudo, :initctl, 'reload-configuration'
95
+ backend.execute :sudo, :initctl, 'reload-configuration'
95
96
  else
96
- backend.execute :sudo, :mv, "/tmp/#{conf_filename}", "#{upstart_path}/#{conf_filename}"
97
- #backend.execute :sudo, :initctl, 'reload-configuration' #TODO
97
+ # backend.execute :sudo, :initctl, 'reload-configuration' #TODO
98
98
  end
99
99
  end
100
100
 
101
101
  def num_workers
102
102
  fetch(:sidekiq_upstart_num_workers, nil)
103
103
  end
104
-
105
104
  end
@@ -51,9 +51,9 @@ UMask=0002
51
51
 
52
52
  <%="EnvironmentFile=#{File.join(fetch(:deploy_to), 'current')}/#{fetch(:sidekiq_service_unit_env_file)}" if fetch(:sidekiq_service_unit_env_file) %>
53
53
 
54
- # Greatly reduce Ruby memory fragmentation and heap usage
55
- # https://www.mikeperham.com/2018/04/25/taming-rails-memory-bloat/
56
- Environment=MALLOC_ARENA_MAX=2
54
+ <% fetch(:sidekiq_service_unit_env_vars, []).each do |environment_variable| %>
55
+ <%="Environment=#{environment_variable}" %>
56
+ <% end %>
57
57
 
58
58
  # if we crash, restart
59
59
  RestartSec=1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-15 00:00:00.000000000 Z
11
+ date: 2022-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano