Commit 7a7b28f
authored
Add support for GroupResult (#161)
* add group database methods
* remove typo
* encode group results
* use var for using, defaults to None
* use task model in db manager
* try using the _db
* db is not prefixed by _
* remove celery.five usage, split out GroupResult into a unique model
* use to dict for restore group, use different encoding for saving group
* add migration for group result
* add group result admin
* its group_id not task_id
* dont double encode the result
* try using id instead of result
* cleanup group model in cleanup method
* decode result into array of async results
* its to_dict not as_dict
* fix decoding of group result results
* remove unused import
* use autogenerated migration for group result model
* add group views, handle edge cases of group functions
* add tests for group model and views
* undo formatting changes
* fix redefined var and unused import
* resolve multiple leaf in migration graph error
* switch to using path for group result views
* respect settings for id length
* dont add app to GroupResult model creation
* use explicit path to celery content to avoid clobering
* celery imports are weird...need to import states from celery?
* fix flake8 formatting errors
* fix pydocsstyle formatting errors
* appease django by matching the help text exactly
* use custom path converter for task pattern in all paths
* appease flake8 & pydocstyle
* even more flake8 & pydocstyle appeasement
* too many blank lines formatting fix
* use django.urls instead of django.conf.urls
* switch from importing all of celery, to just the stuff we need with renames
* add settings app in group result
* switch to setting up indexes using model meta class
* merge 2 migrations into 1 clean new one
* remove the regex string marker
* fix flake8 formatting complaints on new migration
* revert rogue formatting change
* update introduction docs1 parent a477de3 commit 7a7b28f
File tree
10 files changed
+560
-67
lines changed- django_celery_results
- backends
- migrations
- docs/includes
- t/unit
10 files changed
+560
-67
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| |||
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
60 | | - | |
61 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| |||
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
90 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
| |||
115 | 127 | | |
116 | 128 | | |
117 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
118 | 160 | | |
119 | 161 | | |
120 | 162 | | |
| |||
170 | 212 | | |
171 | 213 | | |
172 | 214 | | |
173 | | - | |
174 | 215 | | |
175 | 216 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
181 | 221 | | |
182 | 222 | | |
183 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
61 | 98 | | |
62 | 99 | | |
63 | 100 | | |
| |||
136 | 173 | | |
137 | 174 | | |
138 | 175 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 176 | | |
151 | | - | |
152 | | - | |
| 177 | + | |
| 178 | + | |
153 | 179 | | |
154 | | - | |
155 | | - | |
| 180 | + | |
156 | 181 | | |
157 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
158 | 193 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
162 | 200 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
166 | 209 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
0 commit comments