Skip to content

Transaction support, maybe?  #23

Closed
@mpasternak

Description

@mpasternak

Hello,

not trying to come as rude/aggressive/criticizing... just found out your package and taking a look how do you do things,

What are your thoughts on transaction support?

Because, in this model, when you save things in post_save signal, if the transaction gets rolled back... the web hooks already been fired.

My idea was to mark saved objects as "dirty" in the on_commit handler... something similar to your store_events... then if the task queue picked those "marked-as-dirty" entries, it checked for the presence of the original object in the table (via a GenericField)... it had some delay in case the object did not exist yet... etc.

This is not an actual issue, I hope you and your users are happy with the approach you chosen. But this is pretty hard to synchronize a webhook and an in-database transaction. Just trying to see if you had some thoughts on it.

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions