<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 read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</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/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</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?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</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 bug was already fixed in the 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">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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).<br>
v4.3.3 and v4.4.0rc3</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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" checked=""> 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" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>

<ul class="contains-task-list">
<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 Python version<br>
and/or implementation.</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<br>
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 version of the message<br>
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 operating system.</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 autoscaling, retries,<br>
ETA/Countdown &amp; rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</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>
<h2 dir="auto">Environment &amp; Settings</h2>

<p dir="auto"><strong>Celery version</strong>:</p>

<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>

<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>

<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;empty&gt;"><pre class="notranslate"><code class="notranslate">&lt;empty&gt;
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>

<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>

<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python2 -m pip install celery==4.3.0"><pre class="notranslate"><span class="pl-s1">python2</span> <span class="pl-c1">-</span><span class="pl-s1">m</span> <span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-s1">celery</span><span class="pl-c1">==</span><span class="pl-c1">4.3</span>.<span class="pl-c1">0</span></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>

<p dir="auto">Celery package installs</p>
<h1 dir="auto">Actual Behavior</h1>

<p dir="auto">Celery package fails to install when installing <code class="notranslate">more-itertools</code>, from <code class="notranslate">zipp</code>, from <code class="notranslate">importlib-metadata</code>, from <code class="notranslate">kombu</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; python2 --verson
Python 2.7.16

&gt; python2 -m pip --version
pip 19.2.3 from &lt;venv directory&gt;

&gt; python2 -m pip install celery==4.3.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Looking in indexes: https://pypi.org/simple, http://pypi.edtd.net/EDITED/dev/
Collecting celery==4.3.0
  Using cached https://files.pythonhosted.org/packages/5c/a1/a3dd9d8bfa09156ec2cba37f90accf35c0f4ecc3980d96cb4fb99e56504b/celery-4.3.0-py2.py3-none-any.whl
Collecting pytz&gt;dev (from celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/87/76/46d697698a143e05f77bec5a526bf4e56a0be61d63425b68f4ba553b51f2/pytz-2019.2-py2.py3-none-any.whl
Collecting billiard&lt;4.0,&gt;=3.6.0 (from celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/68/1d/2aea8fbb0b1e1260a8a2e77352de2983d36d7ac01207cf14c2b9c6cc860e/billiard-3.6.1.0.tar.gz
Collecting vine&gt;=1.3.0 (from celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/7f/60/82c03047396126c8331ceb64da1dc52d4f1317209f32e8fe286d0c07365a/vine-1.3.0-py2.py3-none-any.whl
Collecting kombu&lt;5.0,&gt;=4.4.0 (from celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/bb/22/58104fd214fb32008f2f4d64a1918c81e353f23e7beee9605674f9ecd6b2/kombu-4.6.4-py2.py3-none-any.whl
Collecting amqp&lt;3.0,&gt;=2.5.1 (from kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/a1/ef/a62ff9dde89e6b75976a746aa5b828ccb3c839ac6fcdc283edd88d7cf90b/amqp-2.5.1-py2.py3-none-any.whl
Collecting importlib-metadata&gt;=0.18 (from kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/ad/aa/25fcbded2ab4ed4ff3071d1e000cd4f8f9c65653d2d7157dd105a8e81d42/importlib_metadata-0.19-py2.py3-none-any.whl
Collecting zipp&gt;=0.5 (from importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/74/3d/1ee25a26411ba0401b43c6376d2316a71addcc72ef8690b101b4ea56d76a/zipp-0.6.0-py2.py3-none-any.whl
Collecting configparser&gt;=3.5; python_version &lt; &quot;3&quot; (from importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/ab/1a/ec151e5e703ac80041eaccef923611bbcec2b667c20383655a06962732e9/configparser-3.8.1-py2.py3-none-any.whl
Collecting contextlib2; python_version &lt; &quot;3&quot; (from importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/a2/71/8273a7eeed0aff6a854237ab5453bc9aa67deb49df4832801c21f0ff3782/contextlib2-0.5.5-py2.py3-none-any.whl
Collecting pathlib2; python_version == &quot;3.4.*&quot; or python_version &lt; &quot;3&quot; (from importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/67/c6/4dbf5dfdbe1140cadf765c3896acc098578626c35721bc7d3eb35f6a8fc1/pathlib2-2.3.4-py2.py3-none-any.whl
Collecting more-itertools (from zipp&gt;=0.5-&gt;importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Downloading http://pypi.edtd.net/root/pypi/%2Bf/409/cd48d4db7052a/more-itertools-7.2.0.tar.gz (73kB)
     |████████████████████████████████| 81kB 1.0MB/s
ERROR: Package 'more-itertools' requires a different Python: 2.7.16 not in '&gt;=3.4'"><pre class="notranslate"><code class="notranslate">&gt; python2 --verson
Python 2.7.16

&gt; python2 -m pip --version
pip 19.2.3 from &lt;venv directory&gt;

&gt; python2 -m pip install celery==4.3.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Looking in indexes: https://pypi.org/simple, http://pypi.edtd.net/EDITED/dev/
Collecting celery==4.3.0
  Using cached https://files.pythonhosted.org/packages/5c/a1/a3dd9d8bfa09156ec2cba37f90accf35c0f4ecc3980d96cb4fb99e56504b/celery-4.3.0-py2.py3-none-any.whl
Collecting pytz&gt;dev (from celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/87/76/46d697698a143e05f77bec5a526bf4e56a0be61d63425b68f4ba553b51f2/pytz-2019.2-py2.py3-none-any.whl
Collecting billiard&lt;4.0,&gt;=3.6.0 (from celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/68/1d/2aea8fbb0b1e1260a8a2e77352de2983d36d7ac01207cf14c2b9c6cc860e/billiard-3.6.1.0.tar.gz
Collecting vine&gt;=1.3.0 (from celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/7f/60/82c03047396126c8331ceb64da1dc52d4f1317209f32e8fe286d0c07365a/vine-1.3.0-py2.py3-none-any.whl
Collecting kombu&lt;5.0,&gt;=4.4.0 (from celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/bb/22/58104fd214fb32008f2f4d64a1918c81e353f23e7beee9605674f9ecd6b2/kombu-4.6.4-py2.py3-none-any.whl
Collecting amqp&lt;3.0,&gt;=2.5.1 (from kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/a1/ef/a62ff9dde89e6b75976a746aa5b828ccb3c839ac6fcdc283edd88d7cf90b/amqp-2.5.1-py2.py3-none-any.whl
Collecting importlib-metadata&gt;=0.18 (from kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/ad/aa/25fcbded2ab4ed4ff3071d1e000cd4f8f9c65653d2d7157dd105a8e81d42/importlib_metadata-0.19-py2.py3-none-any.whl
Collecting zipp&gt;=0.5 (from importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/74/3d/1ee25a26411ba0401b43c6376d2316a71addcc72ef8690b101b4ea56d76a/zipp-0.6.0-py2.py3-none-any.whl
Collecting configparser&gt;=3.5; python_version &lt; "3" (from importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/ab/1a/ec151e5e703ac80041eaccef923611bbcec2b667c20383655a06962732e9/configparser-3.8.1-py2.py3-none-any.whl
Collecting contextlib2; python_version &lt; "3" (from importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/a2/71/8273a7eeed0aff6a854237ab5453bc9aa67deb49df4832801c21f0ff3782/contextlib2-0.5.5-py2.py3-none-any.whl
Collecting pathlib2; python_version == "3.4.*" or python_version &lt; "3" (from importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Using cached https://files.pythonhosted.org/packages/67/c6/4dbf5dfdbe1140cadf765c3896acc098578626c35721bc7d3eb35f6a8fc1/pathlib2-2.3.4-py2.py3-none-any.whl
Collecting more-itertools (from zipp&gt;=0.5-&gt;importlib-metadata&gt;=0.18-&gt;kombu&lt;5.0,&gt;=4.4.0-&gt;celery==4.3.0)
  Downloading http://pypi.edtd.net/root/pypi/%2Bf/409/cd48d4db7052a/more-itertools-7.2.0.tar.gz (73kB)
     |████████████████████████████████| 81kB 1.0MB/s
ERROR: Package 'more-itertools' requires a different Python: 2.7.16 not in '&gt;=3.4'
</code></pre></div>
<h4 dir="auto">Mandatory Debugging Information</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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" checked=""> 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 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" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="422750257" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5398" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5398/hovercard" href="https://github.com/celery/celery/issues/5398">#5398</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="306633783" data-permission-text="Title is private" data-url="https://github.com/celery/django-celery-results/issues/49" data-hovercard-type="issue" data-hovercard-url="/celery/django-celery-results/issues/49/hovercard" href="https://github.com/celery/django-celery-results/issues/49">celery/django-celery-results#49</a></li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<p dir="auto">Latest, not released django-celery-results<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/celery/django-celery-results/commit/b4acbf24ea3521ecfdbf821ece7ca62e49ff2765/hovercard" href="https://github.com/celery/django-celery-results/commit/b4acbf24ea3521ecfdbf821ece7ca62e49ff2765">celery/django-celery-results@<tt>b4acbf2</tt></a><br>
Currently published version doesn't support Celery 5.x, but all versions are affected</p>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<p dir="auto">Source of the issue<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/celery/celery/blob/2a6c7cfe3b1283961887bf1cb3f5aa6c8aa70820/celery/app/trace.py#L323">celery/celery/app/trace.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 323
      in
      <a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/2a6c7cfe3b1283961887bf1cb3f5aa6c8aa70820">2a6c7cf</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L323" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="323"></td>
          <td id="LC323" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">publish_result</span> <span class="pl-c1">=</span> <span class="pl-c1">not</span> <span class="pl-s1">eager</span> <span class="pl-c1">and</span> <span class="pl-c1">not</span> <span class="pl-s1">ignore_result</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pytest

@pytest.mark.parametrize(
    &quot;eager,ignore_result,publish_result&quot;,
    [
        (True, True, False),
        (True, False, True),  # fails
        (False, True, False),
        (False, False, True),
    ]

)
def test_publish_result_current(eager, ignore_result, publish_result):
    actual_publish_result = not eager and not ignore_result
    assert publish_result == actual_publish_result


@pytest.mark.parametrize(
    &quot;eager,ignore_result,publish_result&quot;,
    [
        (True, True, False),
        (True, False, True),
        (False, True, False),
        (False, False, True),
    ]

)
def test_publish_result_desired(eager, ignore_result, publish_result):
    actual_publish_result = not ignore_result
    assert publish_result == actual_publish_result"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pytest</span>

<span class="pl-en">@<span class="pl-s1">pytest</span>.<span class="pl-s1">mark</span>.<span class="pl-en">parametrize</span>(</span>
<span class="pl-en">    <span class="pl-s">"eager,ignore_result,publish_result"</span>,</span>
<span class="pl-en">    [</span>
<span class="pl-en">        (<span class="pl-c1">True</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>),</span>
<span class="pl-en">        (<span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>),  <span class="pl-c"># fails</span></span>
<span class="pl-en">        (<span class="pl-c1">False</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>),</span>
<span class="pl-en">        (<span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>),</span>
<span class="pl-en">    ]</span>
<span class="pl-en"></span>
<span class="pl-en">)</span>
<span class="pl-k">def</span> <span class="pl-en">test_publish_result_current</span>(<span class="pl-s1">eager</span>, <span class="pl-s1">ignore_result</span>, <span class="pl-s1">publish_result</span>):
    <span class="pl-s1">actual_publish_result</span> <span class="pl-c1">=</span> <span class="pl-c1">not</span> <span class="pl-s1">eager</span> <span class="pl-c1">and</span> <span class="pl-c1">not</span> <span class="pl-s1">ignore_result</span>
    <span class="pl-k">assert</span> <span class="pl-s1">publish_result</span> <span class="pl-c1">==</span> <span class="pl-s1">actual_publish_result</span>


<span class="pl-en">@<span class="pl-s1">pytest</span>.<span class="pl-s1">mark</span>.<span class="pl-en">parametrize</span>(</span>
<span class="pl-en">    <span class="pl-s">"eager,ignore_result,publish_result"</span>,</span>
<span class="pl-en">    [</span>
<span class="pl-en">        (<span class="pl-c1">True</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>),</span>
<span class="pl-en">        (<span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>),</span>
<span class="pl-en">        (<span class="pl-c1">False</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>),</span>
<span class="pl-en">        (<span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>),</span>
<span class="pl-en">    ]</span>
<span class="pl-en"></span>
<span class="pl-en">)</span>
<span class="pl-k">def</span> <span class="pl-en">test_publish_result_desired</span>(<span class="pl-s1">eager</span>, <span class="pl-s1">ignore_result</span>, <span class="pl-s1">publish_result</span>):
    <span class="pl-s1">actual_publish_result</span> <span class="pl-c1">=</span> <span class="pl-c1">not</span> <span class="pl-s1">ignore_result</span>
    <span class="pl-k">assert</span> <span class="pl-s1">publish_result</span> <span class="pl-c1">==</span> <span class="pl-s1">actual_publish_result</span></pre></div>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto"><code class="notranslate">always_eager</code> exists so we can use Celery in unit tests. I want to execute a task eagerly and later on check result from the backend.</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">When task is eager and it's set NOT to ignore the result, the result will be ignored.</p>