It would be nice to provide a stock retry function/decorator

Bug #738685 reported by Jamu Kakar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Storm
New
Wishlist
Unassigned

Bug Description

It would be nice to provide a builtin function for performing
transactions replay logic when a DisconnectionError occurs. Something
that could be used like:

    @transact(retries=3)
    def my_application_code(store):
        # Perform database-operations.

Of course, this logic wouldn't work everywhere, but having something
basic that worked most of the time, and could be used as a base to
build on, would be useful.

Jamu Kakar (jkakar)
Changed in storm:
importance: Undecided → Wishlist
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.