aiogram/CHANGES
Alex Root Junior da3e84d4cf
Some checks are pending
Tests / tests (macos-latest, 3.10) (push) Waiting to run
Tests / tests (macos-latest, 3.11) (push) Waiting to run
Tests / tests (macos-latest, 3.12) (push) Waiting to run
Tests / tests (macos-latest, 3.13) (push) Waiting to run
Tests / tests (macos-latest, 3.9) (push) Waiting to run
Tests / tests (ubuntu-latest, 3.10) (push) Waiting to run
Tests / tests (ubuntu-latest, 3.11) (push) Waiting to run
Tests / tests (ubuntu-latest, 3.12) (push) Waiting to run
Tests / tests (ubuntu-latest, 3.13) (push) Waiting to run
Tests / tests (ubuntu-latest, 3.9) (push) Waiting to run
Tests / tests (windows-latest, 3.10) (push) Waiting to run
Tests / tests (windows-latest, 3.11) (push) Waiting to run
Tests / tests (windows-latest, 3.12) (push) Waiting to run
Tests / tests (windows-latest, 3.13) (push) Waiting to run
Tests / tests (windows-latest, 3.9) (push) Waiting to run
Tests / pypy-tests (macos-latest, pypy3.10) (push) Waiting to run
Tests / pypy-tests (macos-latest, pypy3.9) (push) Waiting to run
Tests / pypy-tests (ubuntu-latest, pypy3.10) (push) Waiting to run
Tests / pypy-tests (ubuntu-latest, pypy3.9) (push) Waiting to run
Add semaphore support for limiting concurrent updates (#1670)
* Add semaphore support for limiting concurrent updates

Introduce a semaphore-based mechanism to control the number of concurrent tasks in polling mode when `handle_as_tasks=True`. Added the `tasks_concurrency_limit` parameter to `start_polling()` and `run_polling()`, preventing potential memory exhaustion during high update loads.

* fix: update variable name for clarity in semaphore creation

* Update aiogram/dispatcher/dispatcher.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-12 23:30:02 +03:00
..
.template.rst.jinja2 Update towncrier config 2021-08-03 23:50:10 +03:00
1657.feature.rst Add different shortcut methods for Text.as_kwargs() (#1657) 2025-04-02 23:16:55 +03:00
1658.bugfix.rst Add semaphore support for limiting concurrent updates (#1670) 2025-04-12 23:30:02 +03:00
1659.misc.rst chore: bump pydantic upper bound from <2.11 to <2.12 (#1659) 2025-03-29 17:41:06 +02:00
1661.misc.rst misc: simplify running non-async callback using asyncio.to_thread (#1661) 2025-04-02 23:26:43 +03:00
1664.bugfix.rst fix empty response into webhook (#1665) 2025-04-05 20:31:42 +03:00
1666.doc.rst [#1653, #1654] docs: fix code block formatting in router.rst (#1666) 2025-04-05 20:32:24 +03:00
1671.feature.rst Added full support for the Bot API 9.0 (#1671) 2025-04-12 23:29:48 +03:00