congress.db.utils module

congress.db.utils.retry_on_db_error(func)

Decorates the given function so that it retries on DB deadlock errors.

Parameters

func – Function to decorate.

Returns

Decorated function.