Skip to content

Sequential processing for single user, but async processing for different #3575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
karfly opened this issue Mar 6, 2023 · 1 comment
Closed
Labels

Comments

@karfly
Copy link

karfly commented Mar 6, 2023

Issue I am facing

I set .concurrent_updates(True) in my bot to make it fully asynchronous.
Is it possible to process updates for a single user sequentially one-by-one, but keep bot asynchronous for other users?

I'm asking this question, because I'm afraid of race conditions while accessing DB for a single user. Sequential processing would fully solve my problem.

Traceback to the issue

No response

Related part of your code

No response

Operating System

Ubuntu

Version of Python, python-telegram-bot & dependencies

20.1
@karfly karfly added the question label Mar 6, 2023
@Poolitzer
Copy link
Member

#3509

@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants