Commit e039198
authored
BB2-4892 fix scheduled django management commands (#1629)
Fix scheduled django management commands that fail in prod by allowing the commands to run longer.
Also, update the name of tasks and steps.
* loop `aws ecs wait tasks-stopped` to overcome its 10 minute limit
* fix bash syntax
* print out exit code for debugging
* rename job and steps to be more general
These aren't just migration commands, so updating to reflect that.
* update to use until loop
* redirect stderr to /dev/null, since a timeout error is sometimes expected
Expected if the task takes longer than 10 minutes to complete.1 parent 9058ab4 commit e039198
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
0 commit comments