Skip to content

A problem with event_isolation #1317

@foozzi

Description

@foozzi

Checklist

  • I am sure the error is coming from aiogram code
  • I have searched in the issue tracker for similar bug reports, including closed ones

Operating system

macOS 13.5.2

Python version

3.11.5

aiogram version

3.0.0

Expected behavior

Change a state after sending a message

Current behavior

I send 10-20 messages to the bot at a time, and it responds to each of them with "Second thing", even though it should have changed its state after the first message.
If I send messages in sequence, everything works fine.

Steps to reproduce

You can run the code from gist and then send 10-20 messages at a time to the bot (e.g. you can forward it 20 messages at a time)

Code example

https://gist.github.com/foozzi/a84ed385616545e68ae75e258f99e46a

Logs

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xIssue or PR for stable 3.x versionbugSomething is wrong with the frameworkconfirmedThis issue is confirmed and requires action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions