Commit 63eb2d0
committed
hub: use .save() with enable-worker so that ready state is refreshed
When enable-worker and disable-worker commands are used, they update
the enabled field in Worker objects directly, bypassing the .save()
method, which is the only place where the ready field is recalculated.
This change uses .save() to make the enabled state change, so that
ready state is recalculated. This fixes an issue where if a worker is
disabled, then later re-enabled, it can get stuck in a non-ready
state.1 parent bf38e1b commit 63eb2d0
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
49 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
0 commit comments