<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" 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"> 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="celery -A celeryacl report

software -&gt; celery:4.3.0 (rhubarb) kombu:4.5.0 py:3.6.8
billiard:3.6.0.0 py-amqp:2.4.2
platform -&gt; system:Linux arch:64bit
kernel version:4.18.0-1013-azure imp:CPython
loader -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:amqp results:db+mysql+pymysql://celery:**@X.X.X.X:XXXX/celeryresults"><pre class="notranslate"><code class="notranslate">celery -A celeryacl report

software -&gt; celery:4.3.0 (rhubarb) kombu:4.5.0 py:3.6.8
billiard:3.6.0.0 py-amqp:2.4.2
platform -&gt; system:Linux arch:64bit
kernel version:4.18.0-1013-azure imp:CPython
loader -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:amqp results:db+mysql+pymysql://celery:**@X.X.X.X:XXXX/celeryresults
</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="pip freeze
amqp==2.4.2
asn1crypto==0.24.0
bcrypt==3.1.6
billiard==3.6.0.0
celery==4.3.0
cffi==1.12.2
Click==7.0
cryptography==2.6.1
Flask==1.0.2
Flask-Cors==3.0.7
itsdangerous==1.1.0
Jinja2==2.10
kombu==4.5.0
MarkupSafe==1.1.1
mysql-connector-python==8.0.15
netmiko==2.3.3
paramiko==2.4.2
protobuf==3.7.1
pyasn1==0.4.5
pycparser==2.19
PyMySQL==0.9.3
PyNaCl==1.3.0
pyserial==3.4
pytz==2018.9
PyYAML==5.1
scp==0.13.2
six==1.12.0
SQLAlchemy==1.2.14
textfsm==0.4.1
vine==1.3.0
Werkzeug==0.15.2"><pre class="notranslate"><code class="notranslate">pip freeze
amqp==2.4.2
asn1crypto==0.24.0
bcrypt==3.1.6
billiard==3.6.0.0
celery==4.3.0
cffi==1.12.2
Click==7.0
cryptography==2.6.1
Flask==1.0.2
Flask-Cors==3.0.7
itsdangerous==1.1.0
Jinja2==2.10
kombu==4.5.0
MarkupSafe==1.1.1
mysql-connector-python==8.0.15
netmiko==2.3.3
paramiko==2.4.2
protobuf==3.7.1
pyasn1==0.4.5
pycparser==2.19
PyMySQL==0.9.3
PyNaCl==1.3.0
pyserial==3.4
pytz==2018.9
PyYAML==5.1
scp==0.13.2
six==1.12.0
SQLAlchemy==1.2.14
textfsm==0.4.1
vine==1.3.0
Werkzeug==0.15.2
</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=""><pre class="notranslate"></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>

<p dir="auto">With the following configured "result_extended" to true I expected to see more meta data in the backend results DB but I don't. I just see the standard results.</p>
<p dir="auto">app = Celery('tasks',<br>
backend='db+mysql+pymysql://XXX:<a href="mailto:XXX@X.X.X.X">XXX@X.X.X.X</a>:XXXX/celeryresults',<br>
broker='amqp://xxxx:<a href="mailto:xxxx@X.X.X.X">xxxx@X.X.X.X</a>/celery',<br>
result_extended=True)</p>
<h1 dir="auto">Actual Behavior</h1>
<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" 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"> 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" checked=""> 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" checked=""> 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" 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>: 4.3.0 and 4.4.0rc3</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="/usr/local/lib/python3.6/dist-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use &quot;pip install psycopg2-binary&quot; instead. For details see: &lt;http://initd.org/psycopg/docs/install.html#binary-install-from-pypi&gt;.
  &quot;&quot;&quot;)
Traceback (most recent call last):
  File &quot;/usr/local/bin/celery&quot;, line 11, in &lt;module&gt;
    sys.exit(main())
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/__main__.py&quot;, line 16, in main
    _main()
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 322, in main
    cmd.execute_from_commandline(argv)
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 496, in execute_from_commandline
    super(CeleryCommand, self).execute_from_commandline(argv)))
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 305, in execute_from_commandline
    return self.handle_argv(self.prog_name, argv[1:])
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 488, in handle_argv
    return self.execute(command, argv)
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 420, in execute
    ).run_from_argv(self.prog_name, argv[1:], command=argv[0])
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 309, in run_from_argv
    sys.argv if argv is None else argv, command)
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 393, in handle_argv
    return self(*args, **options)
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 253, in __call__
    ret = self.run(*args, **kwargs)
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 371, in run
    self.out(self.app.bugreport())
  File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 413, in out
    print(s, file=fh or self.stdout)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 6271: ordinal not in range(128)"><pre class="notranslate"><code class="notranslate">/usr/local/lib/python3.6/dist-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: &lt;http://initd.org/psycopg/docs/install.html#binary-install-from-pypi&gt;.
  """)
Traceback (most recent call last):
  File "/usr/local/bin/celery", line 11, in &lt;module&gt;
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/celery/__main__.py", line 16, in main
    _main()
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 322, in main
    cmd.execute_from_commandline(argv)
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 496, in execute_from_commandline
    super(CeleryCommand, self).execute_from_commandline(argv)))
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 305, in execute_from_commandline
    return self.handle_argv(self.prog_name, argv[1:])
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 488, in handle_argv
    return self.execute(command, argv)
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 420, in execute
    ).run_from_argv(self.prog_name, argv[1:], command=argv[0])
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 309, in run_from_argv
    sys.argv if argv is None else argv, command)
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 393, in handle_argv
    return self(*args, **options)
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 253, in __call__
    ret = self.run(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 371, in run
    self.out(self.app.bugreport())
  File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 413, in out
    print(s, file=fh or self.stdout)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 6271: ordinal not in range(128)
</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.7</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.5.1
asn1crypto==0.24.0
billiard==3.6.1.0
celery==4.4.0rc3
certifi==2019.6.16
chardet==3.0.4
cryptography==2.1.4
Django==2.1.12
django-celery-beat==1.5.0
django-celery-results==1.1.2
django-pyodbc-azure==2.1.0.0
django-redis==4.8.0
django-rest-auth==0.9.5
django-timezone-field==3.0
djangorestframework==3.9.4
environs==4.2.0
flower==1.0.0
humanize==0.5.1
idna==2.6
importlib-metadata==0.20
keyring==10.6.0
keyrings.alt==3.0
kombu==4.6.4
marshmallow==3.0.1
more-itertools==7.2.0
psycopg2==2.7.5
pycrypto==2.6.1
pygobject==3.26.1
pyodbc==4.0.23
python-crontab==2.3.8
python-dateutil==2.8.0
python-dotenv==0.10.3
pytz==2019.2
pyxdg==0.25
redis==3.3.0
requests==2.22.0
SecretStorage==2.3.1
six==1.11.0
sqlparse==0.3.0
tornado==6.0.3
urllib3==1.25.3
vine==1.3.0
zipp==0.6.0"><pre class="notranslate"><code class="notranslate">amqp==2.5.1
asn1crypto==0.24.0
billiard==3.6.1.0
celery==4.4.0rc3
certifi==2019.6.16
chardet==3.0.4
cryptography==2.1.4
Django==2.1.12
django-celery-beat==1.5.0
django-celery-results==1.1.2
django-pyodbc-azure==2.1.0.0
django-redis==4.8.0
django-rest-auth==0.9.5
django-timezone-field==3.0
djangorestframework==3.9.4
environs==4.2.0
flower==1.0.0
humanize==0.5.1
idna==2.6
importlib-metadata==0.20
keyring==10.6.0
keyrings.alt==3.0
kombu==4.6.4
marshmallow==3.0.1
more-itertools==7.2.0
psycopg2==2.7.5
pycrypto==2.6.1
pygobject==3.26.1
pyodbc==4.0.23
python-crontab==2.3.8
python-dateutil==2.8.0
python-dotenv==0.10.3
pytz==2019.2
pyxdg==0.25
redis==3.3.0
requests==2.22.0
SecretStorage==2.3.1
six==1.11.0
sqlparse==0.3.0
tornado==6.0.3
urllib3==1.25.3
vine==1.3.0
zipp==0.6.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">
The settings.py: 
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CELERY_BROKER_URL = 'amqp://crunchy:waffles@192.168.0.38//'

CELERY_RESULT_BACKEND = 'django-db'
CELERY_CACHE_BACKEND = 'django-cache'

# celery setting.
CELERY_CACHE_BACKEND = 'default'

# django setting.
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
        'LOCATION': 'my_cache_table',
    }
}

CELERY_BEAT_SCHEDULE = {
    'mountPackages': { 
        'task': 'sge.tasks.mountPackages',
        'schedule': crontab(),#crontab(minute='0', hour='7-22/1',day_of_week='mon-sat'),  # execute every hour on day weeks from 7AM to 22PM
        'options': {'queue': 'sender'}
    },
    'notProcessedPackages': { 
        'task': 'sge.tasks.notProcessedPackages',
        'schedule': crontab(),#crontab(minute='30', hour='7-22/3' ,day_of_week='mon-sat'), # execute every three hours on day weeks from 7AM to 10PM
        'options': {'queue': 'unused'}
    },
    'getNotas': { 
        'task': 'sge.tasks.getNotas',
        'schedule': crontab(minute='50', hour='19' ,day_of_week='mon-sat'),  # execute every 8PM from monday to saturdar
        'options': {'queue': 'grades'}
    }
}"><pre class="notranslate"><code class="notranslate">CELERY_BROKER_URL = 'amqp://crunchy:waffles@192.168.0.38//'

CELERY_RESULT_BACKEND = 'django-db'
CELERY_CACHE_BACKEND = 'django-cache'

# celery setting.
CELERY_CACHE_BACKEND = 'default'

# django setting.
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
        'LOCATION': 'my_cache_table',
    }
}

CELERY_BEAT_SCHEDULE = {
    'mountPackages': { 
        'task': 'sge.tasks.mountPackages',
        'schedule': crontab(),#crontab(minute='0', hour='7-22/1',day_of_week='mon-sat'),  # execute every hour on day weeks from 7AM to 22PM
        'options': {'queue': 'sender'}
    },
    'notProcessedPackages': { 
        'task': 'sge.tasks.notProcessedPackages',
        'schedule': crontab(),#crontab(minute='30', hour='7-22/3' ,day_of_week='mon-sat'), # execute every three hours on day weeks from 7AM to 10PM
        'options': {'queue': 'unused'}
    },
    'getNotas': { 
        'task': 'sge.tasks.getNotas',
        'schedule': crontab(minute='50', hour='19' ,day_of_week='mon-sat'),  # execute every 8PM from monday to saturdar
        'options': {'queue': 'grades'}
    }
}
</code></pre></div>
<p dir="auto">celery.py</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'iis.settings')

app = Celery('iis',)
app.config_from_object('django.conf:settings', namespace='CELERY',)
app.autodiscover_tasks()"><pre class="notranslate"><code class="notranslate">from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'iis.settings')

app = Celery('iis',)
app.config_from_object('django.conf:settings', namespace='CELERY',)
app.autodiscover_tasks()
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>

<p dir="auto">The URLs on celery should be replaced by the parameters defined in the settings.py</p>
<h1 dir="auto">Actual Behavior</h1>

<p dir="auto">The result URL and transport URL in the config aren't update to the URLs placed in the Django settings.py.<br>
shell&gt;&gt; celery -A iis worker -Q unused -l info<br>
-------------- celery@celery-worker-unused-6bb747fcc5-ql4w5 v4.4.0rc3 (cliffs)<br>
---- **** -----<br>
--- * ***  * -- Linux-3.10.0-957.27.2.el7.x86_64-x86_64-with-Ubuntu-18.04-bionic 2019-09-02 15:07:10<br>
-- * - **** ---</p>
<ul dir="auto">
<li>** ---------- [config]</li>
<li>** ---------- .&gt; app:         iis:0x7fc6a4802f98</li>
<li>** ---------- .&gt; transport:   redis://redis:6379//</li>
<li>** ---------- .&gt; results:     redis://redis:6379/</li>
<li>*** --- * --- .&gt; concurrency: 8 (prefork)<br>
-- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker)<br>
--- ***** -----<br>
-------------- [queues]<br>
.&gt; unused           exchange=unused(direct) key=unused</li>
</ul>
<p dir="auto">[tasks]<br>
. sge.tasks.getNotas<br>
. sge.tasks.mountPackages<br>
. sge.tasks.notNeededPackage<br>
. sge.tasks.notProcessedPackages<br>
. sge.tasks.requestNotasAlunos<br>
. sge.tasks.sendPackages</p>
<p dir="auto">[2019-09-02 15:07:11,202: INFO/MainProcess] Connected to redis://redis:6379//<br>
[2019-09-02 15:07:11,215: INFO/MainProcess] mingle: searching for neighbors<br>
^C</p>