<p dir="auto">Hello,</p>
<p dir="auto">after changing with django + celery to python 3.6.7 I get a DeprecationWarning for<br>
../celery/utils/imports.py:</p>
<p dir="auto">kind regards Jens</p>
<ul class="contains-task-list">
<li>[x ] I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues in this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with retries, ETA/Countdown &amp; rate limits disabled.</li>
</ul>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<p dir="auto">problem is not visible with pyhton3.5.x<br>
same output for celery 4.3.rc2 or 4.2.1</p>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">no Deprecation Warning for python 3.6.7 like before in python 3.5</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">Output of <code class="notranslate">/venvdir/dev367/bin/python -Wd manage.py runserver 0.0.0.0:8000</code> :<br>
<code class="notranslate">/venvdir/dev367/lib/python3.6/site-packages/celery/utils/imports.py:5: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp as _imp</code></p>
<p dir="auto"><code class="notranslate">/venvdir/dev367/bin/celery -A client report                                                                       software -&gt; celery:4.3.0rc2 (rhubarb) kombu:4.4.0 py:3.6.7 billiard:3.6.0.0 py-amqp:2.4.2 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.14.92-boot2docker imp:CPython loader   -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:django-db</code></p>
<h1 dir="auto">Checklist</h1>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Issue+Type%3A+Feature+Request%22+">issues list</a><br>
for similar or identical feature requests.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?utf8=%E2%9C%93&amp;q=is%3Apr+label%3A%22PR+Type%3A+Feature%22+">pull requests list</a><br>
for existing proposed implementations of this feature.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the if the same feature was already implemented in the<br>
master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>

<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Brief Summary</h1>
<p dir="auto">With <code class="notranslate">prefork</code>, there are a couple parameters <code class="notranslate">--max-tasks-per-child</code> and <code class="notranslate">--max-memory-per-child</code> that can help control memory usage in case of memory leaks. Those parameters aren't compatible with <code class="notranslate">gevent</code>. It would be awesome if there was a way to handle memory leaks with eventlets, where a restart or cleanup can be triggered</p>
<h1 dir="auto">Design</h1>
<h2 dir="auto">Architectural Considerations</h2>

<p dir="auto">None</p>
<h2 dir="auto">Proposed Behavior</h2>

<h2 dir="auto">Proposed UI/UX</h2>

<h2 dir="auto">Diagrams</h2>

<p dir="auto">N/A</p>
<h2 dir="auto">Alternatives</h2>

<p dir="auto">None</p>