Skip to content
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

Timeout handling fix and improvements to related tests #336

Merged
merged 4 commits into from
Jan 27, 2019

Conversation

janneronkko
Copy link
Contributor

The actual fix is in the Fix async_task timeout parameter handling when cluster timeout is set to None (the default)

The other commits improve the related tests

The old implementation used count_forever test task that never finishes.
If the timeout implementation does not work in the test, the test never
end and you was required to kill the test runner.
@codecov-io
Copy link

codecov-io commented Jan 27, 2019

Codecov Report

Merging #336 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #336      +/-   ##
==========================================
+ Coverage   90.38%   90.39%   +0.01%     
==========================================
  Files          43       43              
  Lines        2838     2843       +5     
==========================================
+ Hits         2565     2570       +5     
  Misses        273      273
Impacted Files Coverage Δ
django_q/tests/test_cluster.py 100% <100%> (ø) ⬆️
django_q/cluster.py 91.64% <100%> (+0.04%) ⬆️

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 7ffb3e4...0e2df88. Read the comment docs.

… to None (the default)

The cluster timeout configuration default value None is documented to mean
tasks never timeout out. Also the documentation states that the timeout
can be overridden for individual tasks.

With the old implementation the timeout parameter given to async_task was
not honored if the cluster timeout was set to None.

Fixes: Koed00#335
@Koed00 Koed00 merged commit 9611423 into Koed00:master Jan 27, 2019
@janneronkko janneronkko deleted the timeout branch January 28, 2019 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants