<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%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%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 in this issue<br>
(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">Description</h1>

<p dir="auto">In the latest version of the documentation about  <a href="http://docs.celeryproject.org/en/latest/userguide/configuration.html?highlight=task_reject_on_worker_lost" rel="nofollow">task_reject_on_worker_lost</a>, it says <code class="notranslate">Enabling this can cause message loops</code></p>
<p dir="auto">But actually, enabling this will not cause message loops, tasks only execute twice.Tasks that have been redelivered will not be redelivered again, <a href="https://github.com/celery/celery/blob/master/celery/worker/request.py#L518">source code</a></p>
<h1 dir="auto">Suggestions</h1>

<p dir="auto">If it is a documentation error,  it is best to remove the warning from the document.<br>
If the document is ok, it is need to modify the code.<br>
I can help modify the document or 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 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://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"> 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" 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>
<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" 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>
<p dir="auto"><a href="https://groups.google.com/g/celery-users/c/VIyUHo0UHCM" rel="nofollow">https://groups.google.com/g/celery-users/c/VIyUHo0UHCM</a></p>
<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>: 5.0.0</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.7</li>
<li><strong>Minimal Celery Version</strong>: 5.0.0</li>
<li><strong>Minimal Kombu Version</strong>: 5.0.2</li>
<li><strong>Minimal Broker Version</strong>: Redis 3.5.3</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: Ubuntu 20.04</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>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery.decorators import periodic_task

@periodic_task(run_every=crontab(minute='*/10'))
def my-task():
    doSomething()
"><pre class="notranslate"><code class="notranslate">from celery.decorators import periodic_task

@periodic_task(run_every=crontab(minute='*/10'))
def my-task():
    doSomething()

</code></pre></div>
<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">Import <code class="notranslate">from celery.decorators import periodic_task</code> and use the <code class="notranslate">periodic_task </code>decorator on a task</p>
<h1 dir="auto">Actual Behavior</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/usr/local/lib/python3.7/site-packages/celery/utils/dispatch/signal.py&quot;, line 276, in send
    response = receiver(signal=self, sender=sender, **named)
  File &quot;/usr/local/lib/python3.7/site-packages/vine/promises.py&quot;, line 160, in __call__
    return self.throw()
  File &quot;/usr/local/lib/python3.7/site-packages/vine/promises.py&quot;, line 157, in __call__
    retval = fun(*final_args, **final_kwargs)
  File &quot;/usr/local/lib/python3.7/site-packages/celery/app/base.py&quot;, line 640, in _autodiscover_tasks
    return self._autodiscover_tasks_from_fixups(related_name)
  File &quot;/usr/local/lib/python3.7/site-packages/celery/app/base.py&quot;, line 653, in _autodiscover_tasks_from_fixups
    ], related_name=related_name)
  File &quot;/usr/local/lib/python3.7/site-packages/celery/app/base.py&quot;, line 645, in _autodiscover_tasks_from_names
    packages() if callable(packages) else packages, related_name,
  File &quot;/usr/local/lib/python3.7/site-packages/celery/loaders/base.py&quot;, line 220, in autodiscover_tasks
    related_name) if mod)
  File &quot;/usr/local/lib/python3.7/site-packages/celery/loaders/base.py&quot;, line 245, in autodiscover_tasks
    return [find_related_module(pkg, related_name) for pkg in packages]
  File &quot;/usr/local/lib/python3.7/site-packages/celery/loaders/base.py&quot;, line 245, in &lt;listcomp&gt;
    return [find_related_module(pkg, related_name) for pkg in packages]
  File &quot;/usr/local/lib/python3.7/site-packages/celery/loaders/base.py&quot;, line 270, in find_related_module
    raise e
  File &quot;/usr/local/lib/python3.7/site-packages/celery/loaders/base.py&quot;, line 266, in find_related_module
    return importlib.import_module(module_name)
  File &quot;/usr/local/lib/python3.7/importlib/__init__.py&quot;, line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1006, in _gcd_import
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 983, in _find_and_load
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 967, in _find_and_load_unlocked
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 677, in _load_unlocked
  File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 728, in exec_module
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
  File &quot;/src/scraper/tasks.py&quot;, line 25, in &lt;module&gt;
    @periodic_task(run_every=crontab(minute='*/10'))
  File &quot;/usr/local/lib/python3.7/site-packages/celery/local.py&quot;, line 403, in _compat_periodic_task_decorator
    from celery.task import periodic_task
ModuleNotFoundError: No module named 'celery.task'
Traceback (most recent call last):
  File &quot;/usr/local/bin/celery&quot;, line 8, in &lt;module&gt;
    sys.exit(main())
  File &quot;/usr/local/lib/python3.7/site-packages/celery/__main__.py&quot;, line 15, in main
    sys.exit(_main())
  File &quot;/usr/local/lib/python3.7/site-packages/celery/bin/celery.py&quot;, line 150, in main
    return celery(auto_envvar_prefix=&quot;CELERY&quot;)
  File &quot;/usr/local/lib/python3.7/site-packages/click/core.py&quot;, line 829, in __call__
    return self.main(*args, **kwargs)
  File &quot;/usr/local/lib/python3.7/site-packages/click/core.py&quot;, line 782, in main
    rv = self.invoke(ctx)
  File &quot;/usr/local/lib/python3.7/site-packages/click/core.py&quot;, line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &quot;/usr/local/lib/python3.7/site-packages/click/core.py&quot;, line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File &quot;/usr/local/lib/python3.7/site-packages/click/core.py&quot;, line 610, in invoke
    return callback(*args, **kwargs)
  File &quot;/usr/local/lib/python3.7/site-packages/click/decorators.py&quot;, line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File &quot;/usr/local/lib/python3.7/site-packages/celery/bin/worker.py&quot;, line 329, in worker
    **kwargs)
  File &quot;/usr/local/lib/python3.7/site-packages/celery/worker/worker.py&quot;, line 94, in __init__
    self.app.loader.init_worker()
  File &quot;/usr/local/lib/python3.7/site-packages/celery/loaders/base.py&quot;, line 111, in init_worker
    self.import_default_modules()
  File &quot;/usr/local/lib/python3.7/site-packages/celery/loaders/base.py&quot;, line 105, in import_default_modules
    raise response
  File &quot;/usr/local/lib/python3.7/site-packages/celery/utils/dispatch/signal.py&quot;, line 276, in send
    response = receiver(signal=self, sender=sender, **named)
  File &quot;/usr/local/lib/python3.7/site-packages/celery/fixups/django.py&quot;, line 82, in on_import_modules
    self.worker_fixup.validate_models()
  File &quot;/usr/local/lib/python3.7/site-packages/celery/fixups/django.py&quot;, line 121, in validate_models
    run_checks()
  File &quot;/usr/local/lib/python3.7/site-packages/django/core/checks/registry.py&quot;, line 70, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File &quot;/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py&quot;, line 13, in check_url_config
    return check_resolver(resolver)
  File &quot;/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py&quot;, line 23, in check_resolver
    return check_method()
  File &quot;/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py&quot;, line 408, in check
    for pattern in self.url_patterns:
  File &quot;/usr/local/lib/python3.7/site-packages/django/utils/functional.py&quot;, line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File &quot;/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py&quot;, line 589, in url_patterns
    patterns = getattr(self.urlconf_module, &quot;urlpatterns&quot;, self.urlconf_module)
  File &quot;/usr/local/lib/python3.7/site-packages/django/utils/functional.py&quot;, line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File &quot;/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py&quot;, line 582, in urlconf_module
    return import_module(self.urlconf_name)
  File &quot;/usr/local/lib/python3.7/importlib/__init__.py&quot;, line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1006, in _gcd_import
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 983, in _find_and_load
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 967, in _find_and_load_unlocked
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 677, in _load_unlocked
  File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 728, in exec_module
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
  File &quot;/src/mydjango/urls.py&quot;, line 22, in &lt;module&gt;
    path('api/', include('scraper.urls', namespace=&quot;scraper&quot;)),
  File &quot;/usr/local/lib/python3.7/site-packages/django/urls/conf.py&quot;, line 34, in include
    urlconf_module = import_module(urlconf_module)
  File &quot;/usr/local/lib/python3.7/importlib/__init__.py&quot;, line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1006, in _gcd_import
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 983, in _find_and_load
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 967, in _find_and_load_unlocked
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 677, in _load_unlocked
  File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 728, in exec_module
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
  File &quot;/src/scraper/urls.py&quot;, line 3, in &lt;module&gt;
    from . import views
  File &quot;/src/scraper/views.py&quot;, line 2, in &lt;module&gt;
    from .tasks import save_fuzzed_domains
  File &quot;/src/scraper/tasks.py&quot;, line 25, in &lt;module&gt;
    @periodic_task(run_every=crontab(minute='*/10'))
  File &quot;/usr/local/lib/python3.7/site-packages/celery/local.py&quot;, line 403, in _compat_periodic_task_decorator
    from celery.task import periodic_task
ModuleNotFoundError: No module named 'celery.task'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/celery/utils/dispatch/signal.py", line 276, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python3.7/site-packages/vine/promises.py", line 160, in __call__
    return self.throw()
  File "/usr/local/lib/python3.7/site-packages/vine/promises.py", line 157, in __call__
    retval = fun(*final_args, **final_kwargs)
  File "/usr/local/lib/python3.7/site-packages/celery/app/base.py", line 640, in _autodiscover_tasks
    return self._autodiscover_tasks_from_fixups(related_name)
  File "/usr/local/lib/python3.7/site-packages/celery/app/base.py", line 653, in _autodiscover_tasks_from_fixups
    ], related_name=related_name)
  File "/usr/local/lib/python3.7/site-packages/celery/app/base.py", line 645, in _autodiscover_tasks_from_names
    packages() if callable(packages) else packages, related_name,
  File "/usr/local/lib/python3.7/site-packages/celery/loaders/base.py", line 220, in autodiscover_tasks
    related_name) if mod)
  File "/usr/local/lib/python3.7/site-packages/celery/loaders/base.py", line 245, in autodiscover_tasks
    return [find_related_module(pkg, related_name) for pkg in packages]
  File "/usr/local/lib/python3.7/site-packages/celery/loaders/base.py", line 245, in &lt;listcomp&gt;
    return [find_related_module(pkg, related_name) for pkg in packages]
  File "/usr/local/lib/python3.7/site-packages/celery/loaders/base.py", line 270, in find_related_module
    raise e
  File "/usr/local/lib/python3.7/site-packages/celery/loaders/base.py", line 266, in find_related_module
    return importlib.import_module(module_name)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _gcd_import
  File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
  File "&lt;frozen importlib._bootstrap_external&gt;", line 728, in exec_module
  File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
  File "/src/scraper/tasks.py", line 25, in &lt;module&gt;
    @periodic_task(run_every=crontab(minute='*/10'))
  File "/usr/local/lib/python3.7/site-packages/celery/local.py", line 403, in _compat_periodic_task_decorator
    from celery.task import periodic_task
ModuleNotFoundError: No module named 'celery.task'
Traceback (most recent call last):
  File "/usr/local/bin/celery", line 8, in &lt;module&gt;
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/celery/__main__.py", line 15, in main
    sys.exit(_main())
  File "/usr/local/lib/python3.7/site-packages/celery/bin/celery.py", line 150, in main
    return celery(auto_envvar_prefix="CELERY")
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/celery/bin/worker.py", line 329, in worker
    **kwargs)
  File "/usr/local/lib/python3.7/site-packages/celery/worker/worker.py", line 94, in __init__
    self.app.loader.init_worker()
  File "/usr/local/lib/python3.7/site-packages/celery/loaders/base.py", line 111, in init_worker
    self.import_default_modules()
  File "/usr/local/lib/python3.7/site-packages/celery/loaders/base.py", line 105, in import_default_modules
    raise response
  File "/usr/local/lib/python3.7/site-packages/celery/utils/dispatch/signal.py", line 276, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python3.7/site-packages/celery/fixups/django.py", line 82, in on_import_modules
    self.worker_fixup.validate_models()
  File "/usr/local/lib/python3.7/site-packages/celery/fixups/django.py", line 121, in validate_models
    run_checks()
  File "/usr/local/lib/python3.7/site-packages/django/core/checks/registry.py", line 70, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py", line 13, in check_url_config
    return check_resolver(resolver)
  File "/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver
    return check_method()
  File "/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py", line 408, in check
    for pattern in self.url_patterns:
  File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py", line 589, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py", line 582, in urlconf_module
    return import_module(self.urlconf_name)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _gcd_import
  File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
  File "&lt;frozen importlib._bootstrap_external&gt;", line 728, in exec_module
  File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
  File "/src/mydjango/urls.py", line 22, in &lt;module&gt;
    path('api/', include('scraper.urls', namespace="scraper")),
  File "/usr/local/lib/python3.7/site-packages/django/urls/conf.py", line 34, in include
    urlconf_module = import_module(urlconf_module)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _gcd_import
  File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 967, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 677, in _load_unlocked
  File "&lt;frozen importlib._bootstrap_external&gt;", line 728, in exec_module
  File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
  File "/src/scraper/urls.py", line 3, in &lt;module&gt;
    from . import views
  File "/src/scraper/views.py", line 2, in &lt;module&gt;
    from .tasks import save_fuzzed_domains
  File "/src/scraper/tasks.py", line 25, in &lt;module&gt;
    @periodic_task(run_every=crontab(minute='*/10'))
  File "/usr/local/lib/python3.7/site-packages/celery/local.py", line 403, in _compat_periodic_task_decorator
    from celery.task import periodic_task
ModuleNotFoundError: No module named 'celery.task'
</code></pre></div>