Commit cb82f62
Matthew Fisher
fix(controller): destroy app containers in parallel
When we call app.destroy(), each container is destroyed in series. Since
we now rely on Fleet's state to respond, we are getting a more accurate
idea of what state the container is actually in. Because of this,
c.destroy() was taking a very long time waiting for a response from
fleet. iThis wasn't a problem before because we were waiting for
django-fsm, which basically said "yup, I told fleet to destroy the
container. It's dead now", which wasn't entirely true.
Switching to destroying containers in parallel makes this operation much
faster.1 parent a6515c8 commit cb82f62
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
| |||
0 commit comments