forked from celery/celery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure blockblob backend parametrized connection/read timeouts (celery…
…#6978) * Initial hardcoded (sorry) change to the celery azure block blob backend. This is required to check if this change has any influence. If it does I will make it proper config option in celery itself. * Add sensible defaults for azure block blob backend. The problem we hit in production is on certain network errors (suspect partitioning) the client becomes stuck on the default read timeout for an ssl socket which in azure is defined in `/azure/storage/blob/_shared/constants.py` as READ_TIMEOUT = 80000 (seconds) for python versions > 3.5. This means that for those python versions the operation is stuck for 55.555[...] days until it times out which is obviously not ideal :). This sets the timeouts at 20s for connection (which is the current default) and 120s for all python versions, which with modern connections is sufficient. If we think it should be higher - I can increase it but we definitely should give the user an option to set their own timeouts based on file sizes and bandwidths they are operating on. * Update docs a bit. * Update docs/userguide/configuration.rst Co-authored-by: Omer Katz <omer.drow@gmail.com> * Add test confirming azure blob client is configured correctly based on values supplied from configuration dictionary. Co-authored-by: tomaszkluczkowski <tomasz.kluczkowski@flexciton.com> Co-authored-by: Asif Saif Uddin <auvipy@gmail.com> Co-authored-by: Omer Katz <omer.drow@gmail.com>
- Loading branch information
1 parent
d377322
commit 4945291
Showing
4 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters