~ubuntuone-hackers/billiard/trunk

Viewing all changes in revision 447.

  • Committer: Asif Saifuddin Auvi
  • Author(s): Eitan Levi
  • Date: 2016-12-19 15:31:56 UTC
  • Revision ID: git-v1:a3874aca2285fbefa179a1b1ed63858ed1021553
Remove superfluous else clause from max_memory_per_child_check (#207)

This fixes issue https://github.com/celery/billiard/issues/205 where the worker will output "worker unable to determine worker memory usage" in the the "happy" case where the worker is below the memory usage limit. The error case (when it's unable to determine memory usage) is already handled above by checking for user_kb <= 0. Removing the else clause will allow the code to drop into the next check (for maxtasks) before returning EX_OK.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: