Skip to content

Using gather inside transaction may leads to errors #260

@kalombos

Description

@kalombos
async with db.aio_atomic():
    await asyncio.gather(t1(), t2(), t3())

It seems fine if all tasks inside gather have no transaction but if t1 and t2 have aio_atomic statement inside it leads to mess of savepoints and errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions