Opened 3 years ago

Closed 15 months ago

#21803 closed New feature (fixed)

Support post-commit hooks

Reported by: Aymeric Augustin Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: Simon Charette, niels.busch@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

We should merge https://github.com/carljm/django-transaction-hooks once it has stabilized.

It looks robust and correctly builds on top of the transaction management code.

See also #14051.

Change History (10)

comment:1 Changed 3 years ago by Simon Charette

Cc: Simon Charette added

comment:2 Changed 3 years ago by Niels Sandholt Busch

Cc: niels.busch@… added

comment:3 Changed 3 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:4 Changed 17 months ago by Andreas Pelme

I've made an initial PR (not yet complete), with a port of django-transaction-hooks:

https://github.com/django/django/pull/4593

comment:5 Changed 17 months ago by Carl Meyer

Has patch: set
Patch needs improvement: set

comment:6 Changed 17 months ago by Tim Graham

Patch needs improvement: unset

comment:7 Changed 17 months ago by Tim Graham

Patch needs improvement: set

comment:8 Changed 15 months ago by Tim Graham

Patch needs improvement: unset

comment:9 Changed 15 months ago by Tim Graham

Triage Stage: AcceptedReady for checkin

comment:10 Changed 15 months ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 00a1d4d0:

Fixed #21803 -- Added support for post-commit callbacks

Made it possible to register and run callbacks after a database
transaction is committed with the transaction.on_commit() function.

This patch is heavily based on Carl Meyers django-transaction-hooks
<https://django-transaction-hooks.readthedocs.org/>. Thanks to
Aymeric Augustin, Carl Meyer, and Tim Graham for review and feedback.

Note: See TracTickets for help on using tickets.
Back to Top