Skip to content

Make 'socket_keepalive' optional variable#6000

Merged
auvipy merged 3 commits into
celery:masterfrom
Seleznev-nvkz:master
Mar 16, 2020
Merged

Make 'socket_keepalive' optional variable#6000
auvipy merged 3 commits into
celery:masterfrom
Seleznev-nvkz:master

Conversation

@Seleznev-nvkz

Copy link
Copy Markdown
Contributor

I propose make 'socket_keepalive' an optional variable to fix #5994.
Also, I've made changes in User Guide (fixed variable names and added versionadded)

@auvipy auvipy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ateast unit tests needed to be updated and if possible integration tests

Comment thread celery/backends/redis.py
socket_connect_timeout and float(socket_connect_timeout),
}

# absent in redis.connection.UnixDomainSocketConnection

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont we need to update tests for this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, I've added a check of this case below

@codecov

codecov Bot commented Mar 14, 2020

Copy link
Copy Markdown

Codecov Report

Merging #6000 into master will decrease coverage by 0.53%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6000      +/-   ##
==========================================
- Coverage   83.43%   82.89%   -0.54%     
==========================================
  Files         145      145              
  Lines       17179    17181       +2     
  Branches     2116     2117       +1     
==========================================
- Hits        14334    14243      -91     
- Misses       2626     2717      +91     
- Partials      219      221       +2
Impacted Files Coverage Δ
celery/backends/redis.py 91.43% <0%> (-1.18%) ⬇️
celery/utils/dispatch/weakref_backports.py 0% <0%> (-42.5%) ⬇️
celery/backends/filesystem.py 94.82% <0%> (-5.18%) ⬇️
celery/utils/functional.py 62.25% <0%> (-3.98%) ⬇️
celery/utils/collections.py 47.65% <0%> (-3.83%) ⬇️
celery/backends/riak.py 82.71% <0%> (-3.71%) ⬇️
celery/utils/serialization.py 93.61% <0%> (-3.55%) ⬇️
celery/utils/imports.py 68.6% <0%> (-3.49%) ⬇️
celery/utils/saferepr.py 96.64% <0%> (-3.36%) ⬇️
celery/local.py 94.35% <0%> (-3.14%) ⬇️
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78d04b3...ee423ca. Read the comment docs.