Commit 49b6dab
committed
Fail cleanly when a scrip aborts the transaction with a database error
Custom scrips can contain code that causes deadlocks, potentially leading
to the failure of an entire database operation. However, when the automatic
rollback occurs, RT may have already returned a false success. For example,
if a scrip that runs on ticket create causes deadlocks, the system may
display a "ticket created" message, but it's a ghost ticket as it doesn't
actually exist in database.1 parent 01397ed commit 49b6dab
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
306 | 311 | | |
307 | 312 | | |
308 | 313 | | |
| |||
0 commit comments