<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" checked=""> This has already been asked to the <a href="https://github.com/celery/celery/discussions">discussions forum</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="https://docs.celeryq.dev/en/master/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" 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" 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"> 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" checked=""> 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:5.3.0b1 (dawn-chorus) kombu:5.3.0b1 py:3.10.5
            billiard:4.0.2 redis:4.3.4
platform -&gt; system:Linux arch:64bit, ELF
            kernel version:5.15.60-1-MANJARO imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:redis results:disabled

broker_url: 'redis://localhost:6379//'
task_acks_late: True
deprecated_settings: None"><pre class="notranslate"><code class="notranslate">software -&gt; celery:5.3.0b1 (dawn-chorus) kombu:5.3.0b1 py:3.10.5
            billiard:4.0.2 redis:4.3.4
platform -&gt; system:Linux arch:64bit, ELF
            kernel version:5.15.60-1-MANJARO imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:redis results:disabled

broker_url: 'redis://localhost:6379//'
task_acks_late: True
deprecated_settings: None
</code></pre></div>
<p dir="auto">The actual commit of <code class="notranslate">celery</code> is <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/celery/celery/commit/ebdf9e53d4b5edd9aa66cb7faf413776dd5d74a5/hovercard" href="https://github.com/celery/celery/commit/ebdf9e53d4b5edd9aa66cb7faf413776dd5d74a5"><tt>ebdf9e5</tt></a> (see PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1368896907" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/7755" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/7755/hovercard" href="https://github.com/celery/celery/pull/7755">#7755</a>).</p>
<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.8</li>
<li><strong>Minimal Celery Version</strong>: master, 5.3.0b1</li>
<li><strong>Minimal Kombu Version</strong>: 5.3.0b1</li>
<li><strong>Minimal Broker Version</strong>: Redis 5, 6</li>
<li><strong>Minimal Result Backend Version</strong>: N/A</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A</li>
<li><strong>Minimal Broker Client Version</strong>: redis==4.3, hiredis==2.0</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="amqp==5.1.1
asttokens==2.0.8
async-timeout==4.0.2
backcall==0.2.0
billiard==4.0.2
-e git+https://gitlab.merchise.org/merchise/celery.git@ebdf9e53d4b5edd9aa66cb7faf413776dd5d74a5#egg=celery
click==8.1.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
decorator==5.1.1
Deprecated==1.2.13
executing==1.0.0
hiredis==2.0.0
ipython==8.5.0
jedi==0.18.1
kombu==5.3.0b1
matplotlib-inline==0.1.6
packaging==21.3
parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
prompt-toolkit==3.0.31
ptyprocess==0.7.0
pure-eval==0.2.2
Pygments==2.13.0
pyparsing==3.0.9
pytz==2022.2.1
redis==4.3.4
six==1.16.0
stack-data==0.5.0
traitlets==5.3.0
vine==5.0.0
wcwidth==0.2.5
wrapt==1.14.1"><pre class="notranslate"><code class="notranslate">amqp==5.1.1
asttokens==2.0.8
async-timeout==4.0.2
backcall==0.2.0
billiard==4.0.2
-e git+https://gitlab.merchise.org/merchise/celery.git@ebdf9e53d4b5edd9aa66cb7faf413776dd5d74a5#egg=celery
click==8.1.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
decorator==5.1.1
Deprecated==1.2.13
executing==1.0.0
hiredis==2.0.0
ipython==8.5.0
jedi==0.18.1
kombu==5.3.0b1
matplotlib-inline==0.1.6
packaging==21.3
parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
prompt-toolkit==3.0.31
ptyprocess==0.7.0
pure-eval==0.2.2
Pygments==2.13.0
pyparsing==3.0.9
pytz==2022.2.1
redis==4.3.4
six==1.16.0
stack-data==0.5.0
traitlets==5.3.0
vine==5.0.0
wcwidth==0.2.5
wrapt==1.14.1
</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">The client sends an argument of type `datetime.date`, but the
task receives an instance of `datetime.datetime`.
</p><p dir="auto">I have updated the <code class="notranslate">app/myapp.py</code> example with a simple <code class="notranslate">echo</code> task (see<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1368896907" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/7755" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/7755/hovercard" href="https://github.com/celery/celery/pull/7755">#7755</a>) like this:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.task
def echo(d):
    print(repr(d))"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">task</span></span>
<span class="pl-k">def</span> <span class="pl-en">echo</span>(<span class="pl-s1">d</span>):
    <span class="pl-en">print</span>(<span class="pl-en">repr</span>(<span class="pl-s1">d</span>))</pre></div>
<p dir="auto">I'm running the worker like this:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ celery_broker_url=&quot;redis://localhost/&quot; python myapp.py worker -l INFO"><pre class="notranslate">$ celery_broker_url=<span class="pl-s"><span class="pl-pds">"</span>redis://localhost/<span class="pl-pds">"</span></span> python myapp.py worker -l INFO</pre></div>
<p dir="auto">And the client like this:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ celery_broker_url=&quot;redis://localhost/&quot; python -c &quot;import myapp, datetime; myapp.echo.delay(datetime.date.today())&quot;"><pre class="notranslate">$ celery_broker_url=<span class="pl-s"><span class="pl-pds">"</span>redis://localhost/<span class="pl-pds">"</span></span> python -c <span class="pl-s"><span class="pl-pds">"</span>import myapp, datetime; myapp.echo.delay(datetime.date.today())<span class="pl-pds">"</span></span></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>

<p dir="auto">The worker should receive a <code class="notranslate">datetime.date</code>.  Expected log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2022-09-11 12:16:52,824: WARNING/ForkPoolWorker-8] datetime.date(2022, 9, 11)"><pre class="notranslate"><code class="notranslate">[2022-09-11 12:16:52,824: WARNING/ForkPoolWorker-8] datetime.date(2022, 9, 11)
</code></pre></div>
<h1 dir="auto">Actual Behavior</h1>

<p dir="auto">The worker receives a <code class="notranslate">datetime.datetime</code>.  Actual log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2022-09-11 12:16:52,823: INFO/MainProcess] Task myapp.echo[6e6eabbf-b4ad-4a21-aee9-69b27d6767dd] received
[2022-09-11 12:16:52,824: WARNING/ForkPoolWorker-8] datetime.datetime(2022, 9, 11, 0, 0)
[2022-09-11 12:16:52,824: INFO/ForkPoolWorker-8] Task myapp.echo[6e6eabbf-b4ad-4a21-aee9-69b27d6767dd] succeeded in 0.00020399800268933177s: None"><pre class="notranslate"><code class="notranslate">[2022-09-11 12:16:52,823: INFO/MainProcess] Task myapp.echo[6e6eabbf-b4ad-4a21-aee9-69b27d6767dd] received
[2022-09-11 12:16:52,824: WARNING/ForkPoolWorker-8] datetime.datetime(2022, 9, 11, 0, 0)
[2022-09-11 12:16:52,824: INFO/ForkPoolWorker-8] Task myapp.echo[6e6eabbf-b4ad-4a21-aee9-69b27d6767dd] succeeded in 0.00020399800268933177s: None
</code></pre></div>
<p dir="auto">Uhh I don't know if this whole checklist is useful.. Just run <code class="notranslate">celery &lt;anything&gt; --help</code> and instead of printing help it would attempt to run the command instead. E.g. <code class="notranslate">celery worker --help</code> will start worker.</p>
<p dir="auto">Tried 4.4.6, works fine.</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" 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"> 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" 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" 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>: 4.4.7</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.7 (cliffs) kombu:4.6.11 py:3.7.8
            billiard:3.6.3.0 py-amqp:2.6.1
platform -&gt; system:Linux arch:64bit
            kernel version:4.15.0-112-generic imp:CPython
loader   -&gt; celery.loaders.default.Loader
settings -&gt; transport:amqp results:disabled"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.4.7 (cliffs) kombu:4.6.11 py:3.7.8
            billiard:3.6.3.0 py-amqp:2.6.1
platform -&gt; system:Linux arch:64bit
            kernel version:4.15.0-112-generic imp:CPython
loader   -&gt; celery.loaders.default.Loader
settings -&gt; transport:amqp results:disabled
</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="amqp==2.6.1
billiard==3.6.3.0
celery==4.4.7
importlib-metadata==1.7.0
kombu==4.6.11
pytz==2020.1
vine==1.3.0
zipp==3.1.0"><pre class="notranslate"><code class="notranslate">amqp==2.6.1
billiard==3.6.3.0
celery==4.4.7
importlib-metadata==1.7.0
kombu==4.6.11
pytz==2020.1
vine==1.3.0
zipp==3.1.0
</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="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery worker --help"><pre class="notranslate"><code class="notranslate">celery worker --help
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>

<p dir="auto">Print help.</p>
<h1 dir="auto">Actual Behavior</h1>

<p dir="auto">Started worker.</p>