<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).</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" 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" checked=""> 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" checked=""> 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" checked=""> 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" checked=""> 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>: 3.6</li>
<li><strong>Minimal Celery Version</strong>: 4.3</li>
<li><strong>Minimal Kombu Version</strong>: 4.5.0</li>
<li><strong>Minimal Broker Version</strong>: rabbitmq 3.7.13</li>
<li><strong>Minimal Result Backend Version</strong>: redis 3.2.10</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: python 3.6 docker image</li>
<li><strong>Minimal Broker Client Version</strong>: librabbitmq 2.0.0</li>
<li><strong>Minimal Result Backend Client Version</strong>: redis 3.2.1</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=""><pre class="notranslate"><code class="notranslate"></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>
<p dir="auto">Initially the application is using the below version of python libraries celery, librabbitmq and redis.</p>
<p dir="auto">celery==4.2.1<br>
librabbitmq==2.0.0<br>
redis==2.10.6</p>
<p dir="auto">celery.get(interval=0.001) # response time from redis avg below 10ms</p>
<p dir="auto">After re-deployment the 3 dependencies above were updated to their latest version and eventually the celery.get(interval=0.001) is not working and it's defaulting to 500ms</p>
<p dir="auto">celery==4.3.0<br>
librabbitmq==2.0.0<br>
redis==3.2.1</p>
<p dir="auto">celery.get(interval=0.001) # response time from redis avg 500ms</p>
<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"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Setting interval= 0.001 should decrease the number of waiting time to extract results from redis backend</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">The waiting time always defaults to 500ms even if interval is changes to a lower number</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 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"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<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"> 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" checked=""> 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 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"> 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="software -&gt; celery:4.4.2 (cliffs) kombu:4.6.8 py:3.6.10
            billiard:3.6.3.0 redis:3.4.1
platform -&gt; system:Darwin arch:64bit
            kernel version:19.4.0 imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:redis results:redis://localhost:6379/1

broker_url: 'redis://localhost:6379/1'
result_backend: 'redis://localhost:6379/1'
"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.4.2 (cliffs) kombu:4.6.8 py:3.6.10
            billiard:3.6.3.0 redis:3.4.1
platform -&gt; system:Darwin arch:64bit
            kernel version:19.4.0 imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:redis results:redis://localhost:6379/1

broker_url: 'redis://localhost:6379/1'
result_backend: 'redis://localhost:6379/1'

</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=""><pre class="notranslate"><code class="notranslate"></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>

<p dir="auto">retry does not handle argsrepr and kwargsrepr, so sensitive datas are not hidden.<br>
This occurs when task retry after a failure (*repr variables seems not be part of the retry message). Exception MaxRetriesExceededError also disclose args and kwargs insteed of argsrepr and kwargsrepr, even if max_retries=0 (when no retry occurs)</p>
<p dir="auto">
See following code :
</p><details>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery
from tasks import demo

app = Celery('tasks', broker='redis://localhost:6379/1', backend='redis://localhost:6379/1')

r = demo.apply_async((&quot;user&quot;, &quot;password&quot;), argsrepr=&quot;user:****&quot;, kwargs={&quot;password&quot;:&quot;secretvalue&quot;}, kwargsrepr=&quot;password:****&quot;)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-k">from</span> <span class="pl-s1">tasks</span> <span class="pl-k">import</span> <span class="pl-s1">demo</span>

<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'tasks'</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost:6379/1'</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost:6379/1'</span>)

<span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">demo</span>.<span class="pl-en">apply_async</span>((<span class="pl-s">"user"</span>, <span class="pl-s">"password"</span>), <span class="pl-s1">argsrepr</span><span class="pl-c1">=</span><span class="pl-s">"user:****"</span>, <span class="pl-s1">kwargs</span><span class="pl-c1">=</span>{<span class="pl-s">"password"</span>:<span class="pl-s">"secretvalue"</span>}, <span class="pl-s1">kwargsrepr</span><span class="pl-c1">=</span><span class="pl-s">"password:****"</span>)</pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery

app = Celery('tasks', broker='redis://localhost:6379/1', backend='redis://localhost:6379/1')

@app.task(bind=True, default_retry_delay=1)
def demo(self, *args, **kwargs):
    print(&quot;Enter task&quot;)
    print(self.request.args)
    print(self.request.argsrepr)
    print(self.request.kwargs)
    print(self.request.kwargsrepr)
    raise self.retry(max_retries=1)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>

<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'tasks'</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost:6379/1'</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost:6379/1'</span>)

<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">default_retry_delay</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">demo</span>(<span class="pl-s1">self</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>):
    <span class="pl-en">print</span>(<span class="pl-s">"Enter task"</span>)
    <span class="pl-en">print</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request</span>.<span class="pl-s1">args</span>)
    <span class="pl-en">print</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request</span>.<span class="pl-s1">argsrepr</span>)
    <span class="pl-en">print</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request</span>.<span class="pl-s1">kwargs</span>)
    <span class="pl-en">print</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request</span>.<span class="pl-s1">kwargsrepr</span>)
    <span class="pl-k">raise</span> <span class="pl-s1">self</span>.<span class="pl-en">retry</span>(<span class="pl-s1">max_retries</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>

<p dir="auto">All retries context should contain argsrepr and kwargsrepr values. Exception should report repr values also</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2020-05-12 23:10:18,349: WARNING/ForkPoolWorker-2] Enter task
[2020-05-12 23:10:18,352: WARNING/ForkPoolWorker-2] ['user', 'password']
[2020-05-12 23:10:18,353: WARNING/ForkPoolWorker-2] user:****
[2020-05-12 23:10:18,354: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:18,355: WARNING/ForkPoolWorker-2] password:****
[2020-05-12 23:10:19,704: WARNING/ForkPoolWorker-2] Enter task
[2020-05-12 23:10:19,705: WARNING/ForkPoolWorker-2] ['user', 'password']
[2020-05-12 23:10:19,706: WARNING/ForkPoolWorker-2] user:****
[2020-05-12 23:10:19,710: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:19,712: WARNING/ForkPoolWorker-2] password:****
[2020-05-12 23:10:19,721: ERROR/ForkPoolWorker-2] Task tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] raised unexpected: MaxRetriesExceededError(&quot;Can't retry tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] args:'user:****' kwargs:'password:****'
Traceback (most recent call last):
  File &quot;/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/trace.py&quot;, line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File &quot;/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/trace.py&quot;, line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File &quot;/Users/20010116/Documents/Workspace/beapi--flaskit-snow-demo/tasks.py&quot;, line 12, in demo
    raise self.retry(max_retries=1)
  File &quot;/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/task.py&quot;, line 708, in retry
    ), task_args=S.args, task_kwargs=S.kwargs
celery.exceptions.MaxRetriesExceededError: Can't retry tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] args:'user:****' kwargs:'password:****'"><pre class="notranslate"><code class="notranslate">[2020-05-12 23:10:18,349: WARNING/ForkPoolWorker-2] Enter task
[2020-05-12 23:10:18,352: WARNING/ForkPoolWorker-2] ['user', 'password']
[2020-05-12 23:10:18,353: WARNING/ForkPoolWorker-2] user:****
[2020-05-12 23:10:18,354: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:18,355: WARNING/ForkPoolWorker-2] password:****
[2020-05-12 23:10:19,704: WARNING/ForkPoolWorker-2] Enter task
[2020-05-12 23:10:19,705: WARNING/ForkPoolWorker-2] ['user', 'password']
[2020-05-12 23:10:19,706: WARNING/ForkPoolWorker-2] user:****
[2020-05-12 23:10:19,710: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:19,712: WARNING/ForkPoolWorker-2] password:****
[2020-05-12 23:10:19,721: ERROR/ForkPoolWorker-2] Task tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] raised unexpected: MaxRetriesExceededError("Can't retry tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] args:'user:****' kwargs:'password:****'
Traceback (most recent call last):
  File "/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/trace.py", line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File "/Users/20010116/Documents/Workspace/beapi--flaskit-snow-demo/tasks.py", line 12, in demo
    raise self.retry(max_retries=1)
  File "/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/task.py", line 708, in retry
    ), task_args=S.args, task_kwargs=S.kwargs
celery.exceptions.MaxRetriesExceededError: Can't retry tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] args:'user:****' kwargs:'password:****'
</code></pre></div>
<h1 dir="auto">Actual Behavior</h1>

<p dir="auto">Only first task execution contain repr value. context of retry execution does not contain repr values any more. Exception dump full args and kwargs, so sensitive values are disclosed</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2020-05-12 23:10:18,349: WARNING/ForkPoolWorker-2] Enter task
[2020-05-12 23:10:18,352: WARNING/ForkPoolWorker-2] ['user', 'password']
[2020-05-12 23:10:18,353: WARNING/ForkPoolWorker-2] user:****
[2020-05-12 23:10:18,354: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:18,355: WARNING/ForkPoolWorker-2] password:****
[2020-05-12 23:10:19,704: WARNING/ForkPoolWorker-2] Enter task
[2020-05-12 23:10:19,705: WARNING/ForkPoolWorker-2] ['user', 'password']
[2020-05-12 23:10:19,706: WARNING/ForkPoolWorker-2] ('user', 'password')
[2020-05-12 23:10:19,710: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:19,712: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:19,721: ERROR/ForkPoolWorker-2] Task tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] raised unexpected: MaxRetriesExceededError(&quot;Can't retry tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] args:('user', 'password') kwargs:{'password': 'secretvalue'}&quot;,)
Traceback (most recent call last):
  File &quot;/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/trace.py&quot;, line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File &quot;/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/trace.py&quot;, line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File &quot;/Users/20010116/Documents/Workspace/beapi--flaskit-snow-demo/tasks.py&quot;, line 12, in demo
    raise self.retry(max_retries=1)
  File &quot;/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/task.py&quot;, line 708, in retry
    ), task_args=S.args, task_kwargs=S.kwargs
celery.exceptions.MaxRetriesExceededError: Can't retry tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] args:('user', 'password') kwargs:{'password': 'secretvalue'}"><pre class="notranslate"><code class="notranslate">[2020-05-12 23:10:18,349: WARNING/ForkPoolWorker-2] Enter task
[2020-05-12 23:10:18,352: WARNING/ForkPoolWorker-2] ['user', 'password']
[2020-05-12 23:10:18,353: WARNING/ForkPoolWorker-2] user:****
[2020-05-12 23:10:18,354: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:18,355: WARNING/ForkPoolWorker-2] password:****
[2020-05-12 23:10:19,704: WARNING/ForkPoolWorker-2] Enter task
[2020-05-12 23:10:19,705: WARNING/ForkPoolWorker-2] ['user', 'password']
[2020-05-12 23:10:19,706: WARNING/ForkPoolWorker-2] ('user', 'password')
[2020-05-12 23:10:19,710: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:19,712: WARNING/ForkPoolWorker-2] {'password': 'secretvalue'}
[2020-05-12 23:10:19,721: ERROR/ForkPoolWorker-2] Task tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] raised unexpected: MaxRetriesExceededError("Can't retry tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] args:('user', 'password') kwargs:{'password': 'secretvalue'}",)
Traceback (most recent call last):
  File "/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/trace.py", line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File "/Users/20010116/Documents/Workspace/beapi--flaskit-snow-demo/tasks.py", line 12, in demo
    raise self.retry(max_retries=1)
  File "/Users/20010116/.pyenv/versions/3.6.10/envs/venv-test-flaskit-new/lib/python3.6/site-packages/celery/app/task.py", line 708, in retry
    ), task_args=S.args, task_kwargs=S.kwargs
celery.exceptions.MaxRetriesExceededError: Can't retry tasks.demo[97f47a98-f12a-4745-864e-deb99b9d5ab5] args:('user', 'password') kwargs:{'password': 'secretvalue'}
</code></pre></div>