Commit 26ba8ee
authored
fix(hooks): improve hook to avoid missing logs DEV-1728 (#6710)
### 💭 Notes
Hooks have been failing for a client probably because of failures in the
celery worker. Some submissions have no HookLog at all. This PR adds a
PENDING HookLog creation before the celery dispatch and wraps the
trigger in transaction.on_commit to ensure data has been saved when it
is executed1 parent 2fe5589 commit 26ba8ee
1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
0 commit comments