<h2 dir="auto">Checklist</h2>
<ul dir="auto">
<li>
<p dir="auto">[x ] I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.</p>
</li>
<li>
<p dir="auto">[x ] I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</p>
</li>
</ul>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">I am running a celery task queue on AWS using SQS as my transport and several amazon ec2 instances as my workers.</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">The workers stay connected to the server</p>
<h2 dir="auto">Actual behavior</h2>
<p dir="auto">After a couple of hours, the workers somehow lose connection to the message broker, initiated by a promise rejection due to an empty reply from the server, which throws a <code class="notranslate">SQSError 599</code> exception.  I have investigated this topic and solely found one related <a href="https://github.com/celery/celery/issues/3701" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3701/hovercard">issue</a> where this could be solved by reinstalling pycurl with openssl rather than gnutls. I have tried this solution, which unfortunately does not work for me.<br>
I have included both, the worker log and the <code class="notranslate">celery report</code> in this issue.</p>
<h3 dir="auto">Celery config</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CELERY_BROKER_URL = 'sqs://{0}:{1}@'.format(
    urllib.quote(AWS_SQS_ACCESS_KEY, safe=''),
    urllib.quote(AWS_SQS_SECRET_ACCESS_KEY, safe='')
)

CELERY_RESULT_BACKEND ='django-db'
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'Europe/Berlin'
CELERY_TRACK_STARTED=True
CELERY_WORKER_PREFETCH_MULTIPLIER = 0
CELERY_BROKER_TRANSPORT_OPTIONS['queue_name_prefix'] = 'berries-prod-'
CELERY_SEND_TASK_ERROR_EMAILS = True


CELERY_BROKER_TRANSPORT_OPTIONS = {
    'region': 'eu-central-1',
    'polling_interval': 30,
    'wait_time_seconds': 20,
    'visibility_timeout': 3600,
}"><pre class="notranslate"><span class="pl-v">CELERY_BROKER_URL</span> <span class="pl-c1">=</span> <span class="pl-s">'sqs://{0}:{1}@'</span>.<span class="pl-en">format</span>(
    <span class="pl-s1">urllib</span>.<span class="pl-en">quote</span>(<span class="pl-v">AWS_SQS_ACCESS_KEY</span>, <span class="pl-s1">safe</span><span class="pl-c1">=</span><span class="pl-s">''</span>),
    <span class="pl-s1">urllib</span>.<span class="pl-en">quote</span>(<span class="pl-v">AWS_SQS_SECRET_ACCESS_KEY</span>, <span class="pl-s1">safe</span><span class="pl-c1">=</span><span class="pl-s">''</span>)
)

<span class="pl-v">CELERY_RESULT_BACKEND</span> <span class="pl-c1">=</span><span class="pl-s">'django-db'</span>
<span class="pl-v">CELERY_ACCEPT_CONTENT</span> <span class="pl-c1">=</span> [<span class="pl-s">'json'</span>]
<span class="pl-v">CELERY_TASK_SERIALIZER</span> <span class="pl-c1">=</span> <span class="pl-s">'json'</span>
<span class="pl-v">CELERY_RESULT_SERIALIZER</span> <span class="pl-c1">=</span> <span class="pl-s">'json'</span>
<span class="pl-v">CELERY_TIMEZONE</span> <span class="pl-c1">=</span> <span class="pl-s">'Europe/Berlin'</span>
<span class="pl-v">CELERY_TRACK_STARTED</span><span class="pl-c1">=</span><span class="pl-c1">True</span>
<span class="pl-v">CELERY_WORKER_PREFETCH_MULTIPLIER</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-v">CELERY_BROKER_TRANSPORT_OPTIONS</span>[<span class="pl-s">'queue_name_prefix'</span>] <span class="pl-c1">=</span> <span class="pl-s">'berries-prod-'</span>
<span class="pl-v">CELERY_SEND_TASK_ERROR_EMAILS</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>


<span class="pl-v">CELERY_BROKER_TRANSPORT_OPTIONS</span> <span class="pl-c1">=</span> {
    <span class="pl-s">'region'</span>: <span class="pl-s">'eu-central-1'</span>,
    <span class="pl-s">'polling_interval'</span>: <span class="pl-c1">30</span>,
    <span class="pl-s">'wait_time_seconds'</span>: <span class="pl-c1">20</span>,
    <span class="pl-s">'visibility_timeout'</span>: <span class="pl-c1">3600</span>,
}</pre></div>
<h3 dir="auto">Worker logs</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="2017-04-23 10:12:48,431: INFO/MainProcess] Connected to sqs://AKIAIPAKNCSMWZUH7OOA:**@localhost//
[2017-04-23 10:12:48,473: INFO/MainProcess] celery@ip-172-31-17-229 ready.
[2017-04-23 10:29:54,042: ERROR/MainProcess] Empty body: SQSError: 599 Empty reply from server

[2017-04-23 10:29:54,043: ERROR/MainProcess] Callback &lt;promise@0x7f11afd98808&gt; raised exception: SQSError: 599 Empty reply from server
Traceback (most recent call last):
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py&quot;, line 178, in _process
    buffer=buffer, effective_url=effective_url, error=error,
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 146, in __call__
    svpending(*ca, **ck)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 139, in __call__
    return self.throw()
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 136, in __call__
    retval = fun(*final_args, **final_kwargs)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py&quot;, line 100, in _transback
    return callback(ret)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 139, in __call__
    return self.throw()
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 136, in __call__
    retval = fun(*final_args, **final_kwargs)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py&quot;, line 98, in _transback
    callback.throw()
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py&quot;, line 96, in _transback
    ret = filter_(*args + (ret,), **kwargs)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/aws/connection.py&quot;, line 269, in _on_list_ready
    raise self._for_status(response, body)
SQSError: SQSError: 599 Empty reply from server

[2017-04-23 10:29:54,046: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection...
Traceback (most recent call last):
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py&quot;, line 318, in start
    blueprint.start(self)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/celery/bootsteps.py&quot;, line 119, in start
    step.start(parent)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py&quot;, line 594, in start
    c.loop(*c.loop_args())
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/celery/worker/loops.py&quot;, line 88, in asynloop
    next(loop)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/hub.py&quot;, line 345, in create_loop
    cb(*cbargs)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py&quot;, line 111, in on_readable
    return self._on_event(fd, _pycurl.CSELECT_IN)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py&quot;, line 124, in _on_event
    self._process_pending_requests()
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py&quot;, line 132, in _process_pending_requests
    self._process(curl, errno, reason)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py&quot;, line 178, in _process
    buffer=buffer, effective_url=effective_url, error=error,
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 146, in __call__
    svpending(*ca, **ck)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 139, in __call__
    return self.throw()
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 136, in __call__
    retval = fun(*final_args, **final_kwargs)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py&quot;, line 100, in _transback
    return callback(ret)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 139, in __call__
    return self.throw()
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py&quot;, line 136, in __call__
    retval = fun(*final_args, **final_kwargs)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py&quot;, line 98, in _transback
    callback.throw()
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py&quot;, line 96, in _transback
    ret = filter_(*args + (ret,), **kwargs)
  File &quot;/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/aws/connection.py&quot;, line 269, in _on_list_ready
    raise self._for_status(response, body)
SQSError: SQSError: 599 Empty reply from server

[2017-04-23 10:29:54,083: INFO/MainProcess] Connected to sqs://AKIAIPAKNCSMWZUH7OOA:**@localhost//"><pre class="notranslate">2017-04-23 10:12:48,431: INFO/MainProcess] Connected to sqs://AKIAIPAKNCSMWZUH7OOA:<span class="pl-k">**</span>@localhost//
[2017-04-23 10:12:48,473: INFO/MainProcess] celery@ip-172-31-17-229 ready.
[2017-04-23 10:29:54,042: ERROR/MainProcess] Empty body: SQSError: 599 Empty reply from server

[2017-04-23 10:29:54,043: ERROR/MainProcess] Callback <span class="pl-k">&lt;</span>promise@0x7f11afd<span class="pl-k">98808&gt;</span> raised exception: SQSError: 599 Empty reply from server
Traceback (most recent call last):
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py<span class="pl-pds">"</span></span>, line 178, <span class="pl-k">in</span> _process
    buffer=buffer, effective_url=effective_url, error=error,
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 146, <span class="pl-k">in</span> __call__
    svpending(<span class="pl-k">*</span>ca, <span class="pl-k">**</span>ck)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 139, <span class="pl-k">in</span> __call__
    <span class="pl-k">return</span> <span class="pl-en">self.throw</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 136, <span class="pl-k">in</span> __call__
    retval = fun(<span class="pl-k">*</span>final_args, <span class="pl-k">**</span>final_kwargs)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py<span class="pl-pds">"</span></span>, line 100, <span class="pl-k">in</span> _transback
    <span class="pl-k">return</span> callback(ret)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 139, <span class="pl-k">in</span> __call__
    <span class="pl-k">return</span> <span class="pl-en">self.throw</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 136, <span class="pl-k">in</span> __call__
    retval = fun(<span class="pl-k">*</span>final_args, <span class="pl-k">**</span>final_kwargs)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py<span class="pl-pds">"</span></span>, line 98, <span class="pl-k">in</span> _transback
    <span class="pl-en">callback.throw</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py<span class="pl-pds">"</span></span>, line 96, <span class="pl-k">in</span> _transback
    ret = filter_(<span class="pl-k">*</span>args + (ret,), <span class="pl-k">**</span>kwargs)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/aws/connection.py<span class="pl-pds">"</span></span>, line 269, <span class="pl-k">in</span> _on_list_ready
    raise self._for_status(response, body)
SQSError: SQSError: 599 Empty reply from server

[2017-04-23 10:29:54,046: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection...
Traceback (most recent call last):
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py<span class="pl-pds">"</span></span>, line 318, <span class="pl-k">in</span> start
    blueprint.start(self)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/celery/bootsteps.py<span class="pl-pds">"</span></span>, line 119, <span class="pl-k">in</span> start
    step.start(parent)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py<span class="pl-pds">"</span></span>, line 594, <span class="pl-k">in</span> start
    <span class="pl-en">c.loop(*c.loop_args</span>())
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/celery/worker/loops.py<span class="pl-pds">"</span></span>, line 88, <span class="pl-k">in</span> asynloop
    next(loop)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/hub.py<span class="pl-pds">"</span></span>, line 345, <span class="pl-k">in</span> create_loop
    cb(<span class="pl-k">*</span>cbargs)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py<span class="pl-pds">"</span></span>, line 111, <span class="pl-k">in</span> on_readable
    <span class="pl-k">return</span> self._on_event(fd, _pycurl.CSELECT_IN)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py<span class="pl-pds">"</span></span>, line 124, <span class="pl-k">in</span> _on_event
    <span class="pl-en">self._process_pending_requests</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py<span class="pl-pds">"</span></span>, line 132, <span class="pl-k">in</span> _process_pending_requests
    self._process(curl, errno, reason)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/http/curl.py<span class="pl-pds">"</span></span>, line 178, <span class="pl-k">in</span> _process
    buffer=buffer, effective_url=effective_url, error=error,
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 146, <span class="pl-k">in</span> __call__
    svpending(<span class="pl-k">*</span>ca, <span class="pl-k">**</span>ck)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 139, <span class="pl-k">in</span> __call__
    <span class="pl-k">return</span> <span class="pl-en">self.throw</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 136, <span class="pl-k">in</span> __call__
    retval = fun(<span class="pl-k">*</span>final_args, <span class="pl-k">**</span>final_kwargs)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py<span class="pl-pds">"</span></span>, line 100, <span class="pl-k">in</span> _transback
    <span class="pl-k">return</span> callback(ret)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 139, <span class="pl-k">in</span> __call__
    <span class="pl-k">return</span> <span class="pl-en">self.throw</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/promises.py<span class="pl-pds">"</span></span>, line 136, <span class="pl-k">in</span> __call__
    retval = fun(<span class="pl-k">*</span>final_args, <span class="pl-k">**</span>final_kwargs)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py<span class="pl-pds">"</span></span>, line 98, <span class="pl-k">in</span> _transback
    <span class="pl-en">callback.throw</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/vine/funtools.py<span class="pl-pds">"</span></span>, line 96, <span class="pl-k">in</span> _transback
    ret = filter_(<span class="pl-k">*</span>args + (ret,), <span class="pl-k">**</span>kwargs)
  File <span class="pl-s"><span class="pl-pds">"</span>/home/ubuntu/.virtualenvs/berries/local/lib/python2.7/site-packages/kombu/async/aws/connection.py<span class="pl-pds">"</span></span>, line 269, <span class="pl-k">in</span> _on_list_ready
    raise self._for_status(response, body)
SQSError: SQSError: 599 Empty reply from server

[2017-04-23 10:29:54,083: INFO/MainProcess] Connected to sqs://AKIAIPAKNCSMWZUH7OOA:<span class="pl-k">**</span>@localhost//</pre></div>
<h2 dir="auto">Output from <code class="notranslate">celery -A project report</code></h2>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.0.2 (latentcall) kombu:4.0.2 py:2.7.12
            billiard:3.5.0.2 sqs:N/A
platform -&gt; system:Linux arch:64bit, ELF imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:sqs results:django-db

SECURE_SSL_REDIRECT: False
SECURE_HSTS_SECONDS: 0
USE_X_FORWARDED_PORT: False
CSRF_COOKIE_SECURE: False
CELERY_TRACK_STARTED: True
LANGUAGE_CODE: 'de-de'
ROOT_URLCONF: 'project.urls'
LOGIN_URL: u'/accounts/login/'
BASE_DIR: '/home/ubuntu/webapps/project/project'
TEST_NON_SERIALIZED_APPS: []
DEFAULT_CHARSET: u'utf-8'
AWS_S3_CUSTOM_DOMAIN: 'dxbsrkzoxdmkb.cloudfront.net'
ACCOUNT_EMAIL_REQUIRED: True
CELERY_WORKER_PREFETCH_MULTIPLIER: 0
ACCOUNT_EMAIL_SUBJECT_PREFIX: ''
ALLOWED_HOSTS: ['*']
MESSAGE_STORAGE: u'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX: u'[Django] '
SERVER_EMAIL: u'root@localhost'
CELERY_RESULT_SERIALIZER: 'json'
STATICFILES_FINDERS: [u'django.contrib.staticfiles.finders.FileSystemFinder',
 u'django.contrib.staticfiles.finders.AppDirectoriesFinder']
SESSION_CACHE_ALIAS: u'default'
SESSION_COOKIE_DOMAIN: None
SESSION_COOKIE_NAME: u'sessionid'
AWS_SES_RETURN_PATH: 'it@***.com'
CELERY_BROKER_URL: u'sqs://****:********@localhost//'
AWS_STORAGE_BUCKET_NAME: '***-static'
TIME_INPUT_FORMATS: [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M']
SECURE_REDIRECT_EXEMPT: []
DATABASES: {
    'default': {   'ENGINE': 'django.db.backends.postgresql_psycopg2',
                   'HOST': '**.com',
                   'NAME': '***_prod',
                   'PASSWORD': u'********',
                   'PORT': '****',
                   'USER': '****'}}
EMAIL_SSL_KEYFILE: u'********'
FILE_UPLOAD_DIRECTORY_PERMISSIONS: None
FILE_UPLOAD_PERMISSIONS: None
FILE_UPLOAD_HANDLERS: [u'django.core.files.uploadhandler.MemoryFileUploadHandler',
 u'django.core.files.uploadhandler.TemporaryFileUploadHandler']
DEFAULT_CONTENT_TYPE: u'text/html'
SCARFACE_REGION_NAME: 'eu-central-1'
ACCOUNT_EMAIL_VERIFICATION: 'mandatory'
APPEND_SLASH: True
FIRST_DAY_OF_WEEK: 0
DATABASE_ROUTERS: u'********'
DEFAULT_TABLESPACE: u''
YEAR_MONTH_FORMAT: u'F Y'
STATICFILES_STORAGE: 'storages.backends.s3boto.S3BotoStorage'
CACHES: {
    u'default': {   u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}}
SESSION_COOKIE_PATH: u'/'
SILENCED_SYSTEM_CHECKS: []
MIDDLEWARE_CLASSES:
    ('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware')
USE_I18N: True

SECRET_KEY: u'********'
AWS_SES_REGION_NAME: 'us-west-2'
DEFAULT_INDEX_TABLESPACE: u''
LOGGING_CONFIG: u'logging.config.dictConfig'

WSGI_APPLICATION: 'project.wsgi.application'
AUTHENTICATION_METHOD: 'email'
X_FRAME_OPTIONS: u'SAMEORIGIN'
AUTHENTICATION_BACKENDS:
    ('django.contrib.auth.backends.ModelBackend',
 'allauth.account.auth_backends.AuthenticationBackend')
USE_THOUSAND_SEPARATOR: False
USE_X_FORWARDED_HOST: False
CSRF_HEADER_NAME: u'HTTP_X_CSRFTOKEN'
EMAIL_TIMEOUT: None
SECURE_SSL_HOST: None
SIGNING_BACKEND: u'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE: False
CSRF_COOKIE_DOMAIN: None
FILE_CHARSET: u'utf-8'
DEBUG: False
DATA_UPLOAD_MAX_MEMORY_SIZE: 2621440
SCARFACE_DEVICE_OWNER_MODEL: 'authentication.Profile'
DEFAULT_FILE_STORAGE: u'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS:
    ('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sites',
 'django_celery_beat',
 'django_celery_results',
 'allauth',
 'allauth.account',
 'authentication',
 '**',
 'rest_framework',
 'rest_framework.authtoken',
 'rest_auth.registration',
 'scarface',
 'setup',
 'tasks',
 'storages')

USE_L10N: True
STATIC_ROOT: 'https://project-static.s3.amazonaws.com/'
SECURE_HSTS_INCLUDE_SUBDOMAINS: False
MIDDLEWARE: None
is_overridden: &lt;bound method Settings.is_overridden of &lt;Settings &quot;project.settings.prod&quot;&gt;&gt;
PREPEND_WWW: False
SECURE_PROXY_SSL_HEADER: None
LANGUAGE_COOKIE_AGE: None
SESSION_COOKIE_HTTPONLY: True
AWS_SECRET_ACCESS_KEY: u'********'
DEBUG_PROPAGATE_EXCEPTIONS: False
ACCOUNT_USERNAME_REQUIRED: False
MEDIA_URL: u''
AWS_SES_SECRET_ACCESS_KEY: u'********'
MONTH_DAY_FORMAT: u'F j'
MANAGERS: []
SESSION_EXPIRE_AT_BROWSER_CLOSE: False
AUTH_PASSWORD_VALIDATORS: u'********'
TIME_FORMAT: u'P'
AWS_SQS_SECRET_ACCESS_KEY: u'********'
AUTH_USER_MODEL: u'auth.User'
DATE_INPUT_FORMATS: [u'%Y-%m-%d',
 u'%m/%d/%Y',
 u'%m/%d/%y',
 u'%b %d %Y',
 u'%b %d, %Y',
 u'%d %b %Y',
 u'%d %b, %Y',
 u'%B %d %Y',
 u'%B %d, %Y',
 u'%d %B %Y',
 u'%d %B, %Y']
CELERY_BROKER_TRANSPORT_OPTIONS: {
    'polling_interval': 30,
    'queue_name_prefix': 'project-prod-',
    'region': 'eu-central-1',
    'visibility_timeout': 3600,
    'wait_time_seconds': 20}
CSRF_TRUSTED_ORIGINS: []
CSRF_COOKIE_NAME: u'csrftoken'
EMAIL_HOST_PASSWORD: u'********'
AWS_SES_REGION_ENDPOINT: 'email.us-west-2.amazonaws.com'
PASSWORD_RESET_TIMEOUT_DAYS: u'********'
LANGUAGE_COOKIE_DOMAIN: None
CACHE_MIDDLEWARE_ALIAS: u'default'
SESSION_SAVE_EVERY_REQUEST: False
NUMBER_GROUPING: 0
SESSION_ENGINE: u'django.contrib.sessions.backends.db'
AWS_SQS_ACCESS_KEY: u'********'
CSRF_FAILURE_VIEW: u'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH: u'/'
LOGIN_REDIRECT_URL: u'/accounts/profile/'
CELERY_TASK_SERIALIZER: 'json'
DECIMAL_SEPARATOR: u'.'
CACHE_MIDDLEWARE_KEY_PREFIX: u'********'
LOCALE_PATHS: []
AWS_ACCESS_KEY: u'********'
SESSION_FILE_PATH: None
SECURE_BROWSER_XSS_FILTER: False
FIXTURE_DIRS: []
EMAIL_HOST: u'localhost'
DATE_FORMAT: u'N j, Y'
MEDIA_ROOT: u''
ENCRYPTED_FIELDS_KEYDIR: u'********'
DEFAULT_EXCEPTION_REPORTER_FILTER: u'django.views.debug.SafeExceptionReporterFilter'
ADMINS: []
FORMAT_MODULE_PATH: None
DEFAULT_FROM_EMAIL: 'some@project.com'
THOUSAND_SEPARATOR: u','
REST_FRAMEWORK: {
    'DEFAULT_AUTHENTICATION_CLASSES': (   'rest_framework.authentication.TokenAuthentication',)}
STATICFILES_DIRS:
    ('/home/ubuntu/webapps/project/project/../static',)
SECURE_CONTENT_TYPE_NOSNIFF: False
DATETIME_FORMAT: u'N j, Y, P'
CELERY_ACCEPT_CONTENT: ['json']
AWS_SES_ACCESS_KEY_ID: u'********'
SITE_ID: 1
DISALLOWED_USER_AGENTS: []
REST_AUTH_REGISTER_SERIALIZERS: {
    'REGISTER_SERIALIZER': 'authentication.serializers.RegistrationSerializer'}
CELERY_TIMEZONE: 'Europe/Berlin'
LOGGING: {
    'disable_existing_loggers': False,
    'filters': {   'require_debug_false': {   '()': 'django.utils.log.RequireDebugFalse'}},
    'handlers': {   'mail_admins': {   'class': 'django.utils.log.AdminEmailHandler',
                                       'filters': ['require_debug_false'],
                                       'level': 'ERROR'}},
    'loggers': {   'django.request': {   'handlers': ['mail_admins'],
                                         'level': 'ERROR',
                                         'propagate': True}},
    'version': 1}
SHORT_DATE_FORMAT: u'm/d/Y'
TEMPLATES: [{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': ['templates'],
  'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
                                     'django.template.context_processors.request',
                                     'django.contrib.auth.context_processors.auth',
                                     'django.contrib.messages.context_processors.messages']}}]
LOGOUT_REDIRECT_URL: None
TEST_RUNNER: u'django.test.runner.DiscoverRunner'
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE: u'********'
IGNORABLE_404_URLS: []
EMAIL_USE_TLS: False
TIME_ZONE: 'Europe/Berlin'
FILE_UPLOAD_MAX_MEMORY_SIZE: 2621440
EMAIL_BACKEND: 'django_ses.SESBackend'
S3_URL: 'https://project-static.s3.amazonaws.com/'
LANGUAGE_COOKIE_NAME: u'django_language'
CSRF_COOKIE_AGE: 31449600
EMAIL_USE_SSL: False
CELERY_SEND_TASK_ERROR_EMAILS: True
MIGRATION_MODULES: {
    }
REST_AUTH_SERIALIZERS: {
    'LOGIN_SERIALIZER': 'authentication.serializers.CustomLoginSerializer',
    'USER_DETAILS_SERIALIZER': 'authentication.serializers.UserSerializer'}
DATA_UPLOAD_MAX_NUMBER_FIELDS: 1000
SESSION_COOKIE_AGE: 1209600
SESSION_SERIALIZER: u'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE: u'project.settings.prod'
USE_ETAGS: False

LANGUAGES_BIDI: [u'he', u'ar', u'fa', u'ur']
FILE_UPLOAD_TEMP_DIR: None
INTERNAL_IPS: []
STATIC_URL: 'https://project-static.s3.amazonaws.com/'
EMAIL_PORT: 25
USE_TZ: True
SHORT_DATETIME_FORMAT: u'm/d/Y P'
CELERY_RESULT_BACKEND: 'django-db'
PASSWORD_HASHERS: u'********'
ACCOUNT_UNIQUE_EMAIL: True
ABSOLUTE_URL_OVERRIDES: {
    }
LANGUAGE_COOKIE_PATH: u'/'
CACHE_MIDDLEWARE_SECONDS: 600
EMAIL_SSL_CERTFILE: None
CSRF_COOKIE_HTTPONLY: False
DATETIME_INPUT_FORMATS: [u'%Y-%m-%d %H:%M:%S',
 u'%Y-%m-%d %H:%M:%S.%f',
 u'%Y-%m-%d %H:%M',
 u'%Y-%m-%d',
 u'%m/%d/%Y %H:%M:%S',
 u'%m/%d/%Y %H:%M:%S.%f',
 u'%m/%d/%Y %H:%M',
 u'%m/%d/%Y',
 u'%m/%d/%y %H:%M:%S',
 u'%m/%d/%y %H:%M:%S.%f',
 u'%m/%d/%y %H:%M',
 u'%m/%d/%y']
FORCE_SCRIPT_NAME: None
EMAIL_HOST_USER: u''"><pre class="notranslate">software -<span class="pl-k">&gt;</span> celery:4.0.2 (latentcall) kombu:4.0.2 py:2.7.12
            billiard:3.5.0.2 sqs:N/A
platform -<span class="pl-k">&gt;</span> system:Linux arch:64bit, ELF imp:CPython
loader   -<span class="pl-k">&gt;</span> celery.loaders.app.AppLoader
settings -<span class="pl-k">&gt;</span> transport:sqs results:django-db

SECURE_SSL_REDIRECT: False
SECURE_HSTS_SECONDS: 0
USE_X_FORWARDED_PORT: False
CSRF_COOKIE_SECURE: False
CELERY_TRACK_STARTED: True
LANGUAGE_CODE: <span class="pl-s"><span class="pl-pds">'</span>de-de<span class="pl-pds">'</span></span>
ROOT_URLCONF: <span class="pl-s"><span class="pl-pds">'</span>project.urls<span class="pl-pds">'</span></span>
LOGIN_URL: u<span class="pl-s"><span class="pl-pds">'</span>/accounts/login/<span class="pl-pds">'</span></span>
BASE_DIR: <span class="pl-s"><span class="pl-pds">'</span>/home/ubuntu/webapps/project/project<span class="pl-pds">'</span></span>
TEST_NON_SERIALIZED_APPS: []
DEFAULT_CHARSET: u<span class="pl-s"><span class="pl-pds">'</span>utf-8<span class="pl-pds">'</span></span>
AWS_S3_CUSTOM_DOMAIN: <span class="pl-s"><span class="pl-pds">'</span>dxbsrkzoxdmkb.cloudfront.net<span class="pl-pds">'</span></span>
ACCOUNT_EMAIL_REQUIRED: True
CELERY_WORKER_PREFETCH_MULTIPLIER: 0
ACCOUNT_EMAIL_SUBJECT_PREFIX: <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>
ALLOWED_HOSTS: [<span class="pl-s"><span class="pl-pds">'</span>*<span class="pl-pds">'</span></span>]
MESSAGE_STORAGE: u<span class="pl-s"><span class="pl-pds">'</span>django.contrib.messages.storage.fallback.FallbackStorage<span class="pl-pds">'</span></span>
EMAIL_SUBJECT_PREFIX: u<span class="pl-s"><span class="pl-pds">'</span>[Django] <span class="pl-pds">'</span></span>
SERVER_EMAIL: u<span class="pl-s"><span class="pl-pds">'</span>root@localhost<span class="pl-pds">'</span></span>
CELERY_RESULT_SERIALIZER: <span class="pl-s"><span class="pl-pds">'</span>json<span class="pl-pds">'</span></span>
STATICFILES_FINDERS: [u<span class="pl-s"><span class="pl-pds">'</span>django.contrib.staticfiles.finders.FileSystemFinder<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>django.contrib.staticfiles.finders.AppDirectoriesFinder<span class="pl-pds">'</span></span>]
SESSION_CACHE_ALIAS: u<span class="pl-s"><span class="pl-pds">'</span>default<span class="pl-pds">'</span></span>
SESSION_COOKIE_DOMAIN: None
SESSION_COOKIE_NAME: u<span class="pl-s"><span class="pl-pds">'</span>sessionid<span class="pl-pds">'</span></span>
AWS_SES_RETURN_PATH: <span class="pl-s"><span class="pl-pds">'</span>it@***.com<span class="pl-pds">'</span></span>
CELERY_BROKER_URL: u<span class="pl-s"><span class="pl-pds">'</span>sqs://****:********@localhost//<span class="pl-pds">'</span></span>
AWS_STORAGE_BUCKET_NAME: <span class="pl-s"><span class="pl-pds">'</span>***-static<span class="pl-pds">'</span></span>
TIME_INPUT_FORMATS: [u<span class="pl-s"><span class="pl-pds">'</span>%H:%M:%S<span class="pl-pds">'</span></span>, u<span class="pl-s"><span class="pl-pds">'</span>%H:%M:%S.%f<span class="pl-pds">'</span></span>, u<span class="pl-s"><span class="pl-pds">'</span>%H:%M<span class="pl-pds">'</span></span>]
SECURE_REDIRECT_EXEMPT: []
DATABASES: {
    <span class="pl-s"><span class="pl-pds">'</span>default<span class="pl-pds">'</span></span>: {   <span class="pl-s"><span class="pl-pds">'</span>ENGINE<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>django.db.backends.postgresql_psycopg2<span class="pl-pds">'</span></span>,
                   <span class="pl-s"><span class="pl-pds">'</span>HOST<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>**.com<span class="pl-pds">'</span></span>,
                   <span class="pl-s"><span class="pl-pds">'</span>NAME<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>***_prod<span class="pl-pds">'</span></span>,
                   <span class="pl-s"><span class="pl-pds">'</span>PASSWORD<span class="pl-pds">'</span></span>: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>,
                   <span class="pl-s"><span class="pl-pds">'</span>PORT<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>****<span class="pl-pds">'</span></span>,
                   <span class="pl-s"><span class="pl-pds">'</span>USER<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>****<span class="pl-pds">'</span></span>}}
EMAIL_SSL_KEYFILE: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
FILE_UPLOAD_DIRECTORY_PERMISSIONS: None
FILE_UPLOAD_PERMISSIONS: None
FILE_UPLOAD_HANDLERS: [u<span class="pl-s"><span class="pl-pds">'</span>django.core.files.uploadhandler.MemoryFileUploadHandler<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>django.core.files.uploadhandler.TemporaryFileUploadHandler<span class="pl-pds">'</span></span>]
DEFAULT_CONTENT_TYPE: u<span class="pl-s"><span class="pl-pds">'</span>text/html<span class="pl-pds">'</span></span>
SCARFACE_REGION_NAME: <span class="pl-s"><span class="pl-pds">'</span>eu-central-1<span class="pl-pds">'</span></span>
ACCOUNT_EMAIL_VERIFICATION: <span class="pl-s"><span class="pl-pds">'</span>mandatory<span class="pl-pds">'</span></span>
APPEND_SLASH: True
FIRST_DAY_OF_WEEK: 0
DATABASE_ROUTERS: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
DEFAULT_TABLESPACE: u<span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>
YEAR_MONTH_FORMAT: u<span class="pl-s"><span class="pl-pds">'</span>F Y<span class="pl-pds">'</span></span>
STATICFILES_STORAGE: <span class="pl-s"><span class="pl-pds">'</span>storages.backends.s3boto.S3BotoStorage<span class="pl-pds">'</span></span>
CACHES: {
    u<span class="pl-s"><span class="pl-pds">'</span>default<span class="pl-pds">'</span></span>: {   u<span class="pl-s"><span class="pl-pds">'</span>BACKEND<span class="pl-pds">'</span></span>: u<span class="pl-s"><span class="pl-pds">'</span>django.core.cache.backends.locmem.LocMemCache<span class="pl-pds">'</span></span>}}
SESSION_COOKIE_PATH: u<span class="pl-s"><span class="pl-pds">'</span>/<span class="pl-pds">'</span></span>
SILENCED_SYSTEM_CHECKS: []
MIDDLEWARE_CLASSES:
    (<span class="pl-s"><span class="pl-pds">'</span>django.contrib.sessions.middleware.SessionMiddleware<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.middleware.common.CommonMiddleware<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.contrib.auth.middleware.AuthenticationMiddleware<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.contrib.auth.middleware.SessionAuthenticationMiddleware<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.contrib.messages.middleware.MessageMiddleware<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.middleware.clickjacking.XFrameOptionsMiddleware<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.middleware.security.SecurityMiddleware<span class="pl-pds">'</span></span>)
USE_I18N: True

SECRET_KEY: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
AWS_SES_REGION_NAME: <span class="pl-s"><span class="pl-pds">'</span>us-west-2<span class="pl-pds">'</span></span>
DEFAULT_INDEX_TABLESPACE: u<span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>
LOGGING_CONFIG: u<span class="pl-s"><span class="pl-pds">'</span>logging.config.dictConfig<span class="pl-pds">'</span></span>

WSGI_APPLICATION: <span class="pl-s"><span class="pl-pds">'</span>project.wsgi.application<span class="pl-pds">'</span></span>
AUTHENTICATION_METHOD: <span class="pl-s"><span class="pl-pds">'</span>email<span class="pl-pds">'</span></span>
X_FRAME_OPTIONS: u<span class="pl-s"><span class="pl-pds">'</span>SAMEORIGIN<span class="pl-pds">'</span></span>
AUTHENTICATION_BACKENDS:
    (<span class="pl-s"><span class="pl-pds">'</span>django.contrib.auth.backends.ModelBackend<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>allauth.account.auth_backends.AuthenticationBackend<span class="pl-pds">'</span></span>)
USE_THOUSAND_SEPARATOR: False
USE_X_FORWARDED_HOST: False
CSRF_HEADER_NAME: u<span class="pl-s"><span class="pl-pds">'</span>HTTP_X_CSRFTOKEN<span class="pl-pds">'</span></span>
EMAIL_TIMEOUT: None
SECURE_SSL_HOST: None
SIGNING_BACKEND: u<span class="pl-s"><span class="pl-pds">'</span>django.core.signing.TimestampSigner<span class="pl-pds">'</span></span>
SESSION_COOKIE_SECURE: False
CSRF_COOKIE_DOMAIN: None
FILE_CHARSET: u<span class="pl-s"><span class="pl-pds">'</span>utf-8<span class="pl-pds">'</span></span>
DEBUG: False
DATA_UPLOAD_MAX_MEMORY_SIZE: 2621440
SCARFACE_DEVICE_OWNER_MODEL: <span class="pl-s"><span class="pl-pds">'</span>authentication.Profile<span class="pl-pds">'</span></span>
DEFAULT_FILE_STORAGE: u<span class="pl-s"><span class="pl-pds">'</span>django.core.files.storage.FileSystemStorage<span class="pl-pds">'</span></span>
INSTALLED_APPS:
    (<span class="pl-s"><span class="pl-pds">'</span>django.contrib.admin<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.contrib.auth<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.contrib.contenttypes<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.contrib.sessions<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.contrib.messages<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.contrib.staticfiles<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django.contrib.sites<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django_celery_beat<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>django_celery_results<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>allauth<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>allauth.account<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>authentication<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>**<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>rest_framework<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>rest_framework.authtoken<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>rest_auth.registration<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>scarface<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>setup<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>tasks<span class="pl-pds">'</span></span>,
 <span class="pl-s"><span class="pl-pds">'</span>storages<span class="pl-pds">'</span></span>)

USE_L10N: True
STATIC_ROOT: <span class="pl-s"><span class="pl-pds">'</span>https://project-static.s3.amazonaws.com/<span class="pl-pds">'</span></span>
SECURE_HSTS_INCLUDE_SUBDOMAINS: False
MIDDLEWARE: None
is_overridden: <span class="pl-k">&lt;</span>bound method Settings.is_overridden of <span class="pl-k">&lt;</span>Settings <span class="pl-s"><span class="pl-pds">"</span>project.settings.prod<span class="pl-pds">"</span></span><span class="pl-k">&gt;&gt;</span>
PREPEND_WWW: False
SECURE_PROXY_SSL_HEADER: None
LANGUAGE_COOKIE_AGE: None
SESSION_COOKIE_HTTPONLY: True
AWS_SECRET_ACCESS_KEY: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
DEBUG_PROPAGATE_EXCEPTIONS: False
ACCOUNT_USERNAME_REQUIRED: False
MEDIA_URL: u<span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>
AWS_SES_SECRET_ACCESS_KEY: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
MONTH_DAY_FORMAT: u<span class="pl-s"><span class="pl-pds">'</span>F j<span class="pl-pds">'</span></span>
MANAGERS: []
SESSION_EXPIRE_AT_BROWSER_CLOSE: False
AUTH_PASSWORD_VALIDATORS: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
TIME_FORMAT: u<span class="pl-s"><span class="pl-pds">'</span>P<span class="pl-pds">'</span></span>
AWS_SQS_SECRET_ACCESS_KEY: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
AUTH_USER_MODEL: u<span class="pl-s"><span class="pl-pds">'</span>auth.User<span class="pl-pds">'</span></span>
DATE_INPUT_FORMATS: [u<span class="pl-s"><span class="pl-pds">'</span>%Y-%m-%d<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%Y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%b %d %Y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%b %d, %Y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%d %b %Y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%d %b, %Y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%B %d %Y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%B %d, %Y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%d %B %Y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%d %B, %Y<span class="pl-pds">'</span></span>]
CELERY_BROKER_TRANSPORT_OPTIONS: {
    <span class="pl-s"><span class="pl-pds">'</span>polling_interval<span class="pl-pds">'</span></span>: 30,
    <span class="pl-s"><span class="pl-pds">'</span>queue_name_prefix<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>project-prod-<span class="pl-pds">'</span></span>,
    <span class="pl-s"><span class="pl-pds">'</span>region<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>eu-central-1<span class="pl-pds">'</span></span>,
    <span class="pl-s"><span class="pl-pds">'</span>visibility_timeout<span class="pl-pds">'</span></span>: 3600,
    <span class="pl-s"><span class="pl-pds">'</span>wait_time_seconds<span class="pl-pds">'</span></span>: 20}
CSRF_TRUSTED_ORIGINS: []
CSRF_COOKIE_NAME: u<span class="pl-s"><span class="pl-pds">'</span>csrftoken<span class="pl-pds">'</span></span>
EMAIL_HOST_PASSWORD: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
AWS_SES_REGION_ENDPOINT: <span class="pl-s"><span class="pl-pds">'</span>email.us-west-2.amazonaws.com<span class="pl-pds">'</span></span>
PASSWORD_RESET_TIMEOUT_DAYS: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
LANGUAGE_COOKIE_DOMAIN: None
CACHE_MIDDLEWARE_ALIAS: u<span class="pl-s"><span class="pl-pds">'</span>default<span class="pl-pds">'</span></span>
SESSION_SAVE_EVERY_REQUEST: False
NUMBER_GROUPING: 0
SESSION_ENGINE: u<span class="pl-s"><span class="pl-pds">'</span>django.contrib.sessions.backends.db<span class="pl-pds">'</span></span>
AWS_SQS_ACCESS_KEY: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
CSRF_FAILURE_VIEW: u<span class="pl-s"><span class="pl-pds">'</span>django.views.csrf.csrf_failure<span class="pl-pds">'</span></span>
CSRF_COOKIE_PATH: u<span class="pl-s"><span class="pl-pds">'</span>/<span class="pl-pds">'</span></span>
LOGIN_REDIRECT_URL: u<span class="pl-s"><span class="pl-pds">'</span>/accounts/profile/<span class="pl-pds">'</span></span>
CELERY_TASK_SERIALIZER: <span class="pl-s"><span class="pl-pds">'</span>json<span class="pl-pds">'</span></span>
DECIMAL_SEPARATOR: u<span class="pl-s"><span class="pl-pds">'</span>.<span class="pl-pds">'</span></span>
CACHE_MIDDLEWARE_KEY_PREFIX: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
LOCALE_PATHS: []
AWS_ACCESS_KEY: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
SESSION_FILE_PATH: None
SECURE_BROWSER_XSS_FILTER: False
FIXTURE_DIRS: []
EMAIL_HOST: u<span class="pl-s"><span class="pl-pds">'</span>localhost<span class="pl-pds">'</span></span>
DATE_FORMAT: u<span class="pl-s"><span class="pl-pds">'</span>N j, Y<span class="pl-pds">'</span></span>
MEDIA_ROOT: u<span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>
ENCRYPTED_FIELDS_KEYDIR: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
DEFAULT_EXCEPTION_REPORTER_FILTER: u<span class="pl-s"><span class="pl-pds">'</span>django.views.debug.SafeExceptionReporterFilter<span class="pl-pds">'</span></span>
ADMINS: []
FORMAT_MODULE_PATH: None
DEFAULT_FROM_EMAIL: <span class="pl-s"><span class="pl-pds">'</span>some@project.com<span class="pl-pds">'</span></span>
THOUSAND_SEPARATOR: u<span class="pl-s"><span class="pl-pds">'</span>,<span class="pl-pds">'</span></span>
REST_FRAMEWORK: {
    <span class="pl-s"><span class="pl-pds">'</span>DEFAULT_AUTHENTICATION_CLASSES<span class="pl-pds">'</span></span>: (   <span class="pl-s"><span class="pl-pds">'</span>rest_framework.authentication.TokenAuthentication<span class="pl-pds">'</span></span>,)}
STATICFILES_DIRS:
    (<span class="pl-s"><span class="pl-pds">'</span>/home/ubuntu/webapps/project/project/../static<span class="pl-pds">'</span></span>,)
SECURE_CONTENT_TYPE_NOSNIFF: False
DATETIME_FORMAT: u<span class="pl-s"><span class="pl-pds">'</span>N j, Y, P<span class="pl-pds">'</span></span>
CELERY_ACCEPT_CONTENT: [<span class="pl-s"><span class="pl-pds">'</span>json<span class="pl-pds">'</span></span>]
AWS_SES_ACCESS_KEY_ID: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
SITE_ID: 1
DISALLOWED_USER_AGENTS: []
REST_AUTH_REGISTER_SERIALIZERS: {
    <span class="pl-s"><span class="pl-pds">'</span>REGISTER_SERIALIZER<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>authentication.serializers.RegistrationSerializer<span class="pl-pds">'</span></span>}
CELERY_TIMEZONE: <span class="pl-s"><span class="pl-pds">'</span>Europe/Berlin<span class="pl-pds">'</span></span>
LOGGING: {
    <span class="pl-s"><span class="pl-pds">'</span>disable_existing_loggers<span class="pl-pds">'</span></span>: False,
    <span class="pl-s"><span class="pl-pds">'</span>filters<span class="pl-pds">'</span></span>: {   <span class="pl-s"><span class="pl-pds">'</span>require_debug_false<span class="pl-pds">'</span></span>: {   <span class="pl-s"><span class="pl-pds">'</span>()<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>django.utils.log.RequireDebugFalse<span class="pl-pds">'</span></span>}},
    <span class="pl-s"><span class="pl-pds">'</span>handlers<span class="pl-pds">'</span></span>: {   <span class="pl-s"><span class="pl-pds">'</span>mail_admins<span class="pl-pds">'</span></span>: {   <span class="pl-s"><span class="pl-pds">'</span>class<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>django.utils.log.AdminEmailHandler<span class="pl-pds">'</span></span>,
                                       <span class="pl-s"><span class="pl-pds">'</span>filters<span class="pl-pds">'</span></span>: [<span class="pl-s"><span class="pl-pds">'</span>require_debug_false<span class="pl-pds">'</span></span>],
                                       <span class="pl-s"><span class="pl-pds">'</span>level<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>ERROR<span class="pl-pds">'</span></span>}},
    <span class="pl-s"><span class="pl-pds">'</span>loggers<span class="pl-pds">'</span></span>: {   <span class="pl-s"><span class="pl-pds">'</span>django.request<span class="pl-pds">'</span></span>: {   <span class="pl-s"><span class="pl-pds">'</span>handlers<span class="pl-pds">'</span></span>: [<span class="pl-s"><span class="pl-pds">'</span>mail_admins<span class="pl-pds">'</span></span>],
                                         <span class="pl-s"><span class="pl-pds">'</span>level<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>ERROR<span class="pl-pds">'</span></span>,
                                         <span class="pl-s"><span class="pl-pds">'</span>propagate<span class="pl-pds">'</span></span>: True}},
    <span class="pl-s"><span class="pl-pds">'</span>version<span class="pl-pds">'</span></span>: 1}
SHORT_DATE_FORMAT: u<span class="pl-s"><span class="pl-pds">'</span>m/d/Y<span class="pl-pds">'</span></span>
TEMPLATES: [{<span class="pl-s"><span class="pl-pds">'</span>APP_DIRS<span class="pl-pds">'</span></span>: True,
  <span class="pl-s"><span class="pl-pds">'</span>BACKEND<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>django.template.backends.django.DjangoTemplates<span class="pl-pds">'</span></span>,
  <span class="pl-s"><span class="pl-pds">'</span>DIRS<span class="pl-pds">'</span></span>: [<span class="pl-s"><span class="pl-pds">'</span>templates<span class="pl-pds">'</span></span>],
  <span class="pl-s"><span class="pl-pds">'</span>OPTIONS<span class="pl-pds">'</span></span>: {<span class="pl-s"><span class="pl-pds">'</span>context_processors<span class="pl-pds">'</span></span>: [<span class="pl-s"><span class="pl-pds">'</span>django.template.context_processors.debug<span class="pl-pds">'</span></span>,
                                     <span class="pl-s"><span class="pl-pds">'</span>django.template.context_processors.request<span class="pl-pds">'</span></span>,
                                     <span class="pl-s"><span class="pl-pds">'</span>django.contrib.auth.context_processors.auth<span class="pl-pds">'</span></span>,
                                     <span class="pl-s"><span class="pl-pds">'</span>django.contrib.messages.context_processors.messages<span class="pl-pds">'</span></span>]}}]
LOGOUT_REDIRECT_URL: None
TEST_RUNNER: u<span class="pl-s"><span class="pl-pds">'</span>django.test.runner.DiscoverRunner<span class="pl-pds">'</span></span>
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
IGNORABLE_404_URLS: []
EMAIL_USE_TLS: False
TIME_ZONE: <span class="pl-s"><span class="pl-pds">'</span>Europe/Berlin<span class="pl-pds">'</span></span>
FILE_UPLOAD_MAX_MEMORY_SIZE: 2621440
EMAIL_BACKEND: <span class="pl-s"><span class="pl-pds">'</span>django_ses.SESBackend<span class="pl-pds">'</span></span>
S3_URL: <span class="pl-s"><span class="pl-pds">'</span>https://project-static.s3.amazonaws.com/<span class="pl-pds">'</span></span>
LANGUAGE_COOKIE_NAME: u<span class="pl-s"><span class="pl-pds">'</span>django_language<span class="pl-pds">'</span></span>
CSRF_COOKIE_AGE: 31449600
EMAIL_USE_SSL: False
CELERY_SEND_TASK_ERROR_EMAILS: True
MIGRATION_MODULES: {
    }
REST_AUTH_SERIALIZERS: {
    <span class="pl-s"><span class="pl-pds">'</span>LOGIN_SERIALIZER<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>authentication.serializers.CustomLoginSerializer<span class="pl-pds">'</span></span>,
    <span class="pl-s"><span class="pl-pds">'</span>USER_DETAILS_SERIALIZER<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>authentication.serializers.UserSerializer<span class="pl-pds">'</span></span>}
DATA_UPLOAD_MAX_NUMBER_FIELDS: 1000
SESSION_COOKIE_AGE: 1209600
SESSION_SERIALIZER: u<span class="pl-s"><span class="pl-pds">'</span>django.contrib.sessions.serializers.JSONSerializer<span class="pl-pds">'</span></span>
SETTINGS_MODULE: u<span class="pl-s"><span class="pl-pds">'</span>project.settings.prod<span class="pl-pds">'</span></span>
USE_ETAGS: False

LANGUAGES_BIDI: [u<span class="pl-s"><span class="pl-pds">'</span>he<span class="pl-pds">'</span></span>, u<span class="pl-s"><span class="pl-pds">'</span>ar<span class="pl-pds">'</span></span>, u<span class="pl-s"><span class="pl-pds">'</span>fa<span class="pl-pds">'</span></span>, u<span class="pl-s"><span class="pl-pds">'</span>ur<span class="pl-pds">'</span></span>]
FILE_UPLOAD_TEMP_DIR: None
INTERNAL_IPS: []
STATIC_URL: <span class="pl-s"><span class="pl-pds">'</span>https://project-static.s3.amazonaws.com/<span class="pl-pds">'</span></span>
EMAIL_PORT: 25
USE_TZ: True
SHORT_DATETIME_FORMAT: u<span class="pl-s"><span class="pl-pds">'</span>m/d/Y P<span class="pl-pds">'</span></span>
CELERY_RESULT_BACKEND: <span class="pl-s"><span class="pl-pds">'</span>django-db<span class="pl-pds">'</span></span>
PASSWORD_HASHERS: u<span class="pl-s"><span class="pl-pds">'</span>********<span class="pl-pds">'</span></span>
ACCOUNT_UNIQUE_EMAIL: True
ABSOLUTE_URL_OVERRIDES: {
    }
LANGUAGE_COOKIE_PATH: u<span class="pl-s"><span class="pl-pds">'</span>/<span class="pl-pds">'</span></span>
CACHE_MIDDLEWARE_SECONDS: 600
EMAIL_SSL_CERTFILE: None
CSRF_COOKIE_HTTPONLY: False
DATETIME_INPUT_FORMATS: [u<span class="pl-s"><span class="pl-pds">'</span>%Y-%m-%d %H:%M:%S<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%Y-%m-%d %H:%M:%S.%f<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%Y-%m-%d %H:%M<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%Y-%m-%d<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%Y %H:%M:%S<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%Y %H:%M:%S.%f<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%Y %H:%M<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%Y<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%y %H:%M:%S<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%y %H:%M:%S.%f<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%y %H:%M<span class="pl-pds">'</span></span>,
 u<span class="pl-s"><span class="pl-pds">'</span>%m/%d/%y<span class="pl-pds">'</span></span>]
FORCE_SCRIPT_NAME: None
EMAIL_HOST_USER: u<span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span></pre></div>
<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"> 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"> 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"> 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"> 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"> 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>I used to Django Web and when celery result contains Chinese fomat,the Chinese characters in the SQL database are encoded in Unicode format, not UTF8,Please advice,thanks.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/41558924/84249466-5e335a80-ab3d-11ea-9073-d7c822c83aac.png"><img src="https://user-images.githubusercontent.com/41558924/84249466-5e335a80-ab3d-11ea-9073-d7c822c83aac.png" alt="image" style="max-width: 100%;"></a></li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<h2 dir="auto">Environment &amp; Settings</h2>

<p dir="auto"><strong>Celery version</strong>: 4.4.5</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@CN-GZWNH42 v4.4.5 (cliffs)
--- ***** -----
-- ******* ---- Windows-10-10.0.18362-SP0 2020-06-10 17:39:54
- *** --- * ---
- ** ---------- [config]
- ** ---------- .&gt; app:         sms:0x157d51ba9c8
- ** ---------- .&gt; transport:   redis://xxxxxxxxxxxx:6379/13
- ** ---------- .&gt; results:
- *** --- * --- .&gt; concurrency: 4 (eventlet)
-- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker)
--- ***** -----
 -------------- [queues]
                .&gt; celery           exchange=celery(direct) key=celery


[tasks]
  . mycelery.sms.tasks.send_sms
  . mycelery.sms.tasks.send_sms2

[2020-06-10 17:39:55,655: INFO/MainProcess] Connected to redis://xxxxxxxxx:6379/13
[2020-06-10 17:39:55,689: INFO/MainProcess] mingle: searching for neighbors
[2020-06-10 17:39:58,855: INFO/MainProcess] mingle: all alone
[2020-06-10 17:39:59,824: INFO/MainProcess] celery@CN-GZWNH42 ready.
[2020-06-10 17:39:59,869: INFO/MainProcess] pidbox: Connected to redis://xxxxxxxxxxxx:6379/13.
[2020-06-10 17:40:09,649: INFO/MainProcess] Received task: mycelery.sms.tasks.send_sms2[9b686dc8-c
398-4c98-9284-cf91fec762a5]
[2020-06-10 17:40:09,651: WARNING/MainProcess] 向手机号110发送短信成功2!
[2020-06-10 17:40:10,953: INFO/MainProcess] Task mycelery.sms.tasks.send_sms2[9b686dc8-c398-4c98-9
284-cf91fec762a5] succeeded in 1.2959999999984575s: '向手机号110发送短信成功!!'"><pre class="notranslate"><code class="notranslate">-------------- celery@CN-GZWNH42 v4.4.5 (cliffs)
--- ***** -----
-- ******* ---- Windows-10-10.0.18362-SP0 2020-06-10 17:39:54
- *** --- * ---
- ** ---------- [config]
- ** ---------- .&gt; app:         sms:0x157d51ba9c8
- ** ---------- .&gt; transport:   redis://xxxxxxxxxxxx:6379/13
- ** ---------- .&gt; results:
- *** --- * --- .&gt; concurrency: 4 (eventlet)
-- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker)
--- ***** -----
 -------------- [queues]
                .&gt; celery           exchange=celery(direct) key=celery


[tasks]
  . mycelery.sms.tasks.send_sms
  . mycelery.sms.tasks.send_sms2

[2020-06-10 17:39:55,655: INFO/MainProcess] Connected to redis://xxxxxxxxx:6379/13
[2020-06-10 17:39:55,689: INFO/MainProcess] mingle: searching for neighbors
[2020-06-10 17:39:58,855: INFO/MainProcess] mingle: all alone
[2020-06-10 17:39:59,824: INFO/MainProcess] celery@CN-GZWNH42 ready.
[2020-06-10 17:39:59,869: INFO/MainProcess] pidbox: Connected to redis://xxxxxxxxxxxx:6379/13.
[2020-06-10 17:40:09,649: INFO/MainProcess] Received task: mycelery.sms.tasks.send_sms2[9b686dc8-c
398-4c98-9284-cf91fec762a5]
[2020-06-10 17:40:09,651: WARNING/MainProcess] 向手机号110发送短信成功2!
[2020-06-10 17:40:10,953: INFO/MainProcess] Task mycelery.sms.tasks.send_sms2[9b686dc8-c398-4c98-9
284-cf91fec762a5] succeeded in 1.2959999999984575s: '向手机号110发送短信成功!!'
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h4 dir="auto">Settings:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="BROKER_URL = 'redis://xxxxxx:6379/13'
CELERY_RESULT_BACKEND = 'django-db'

CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'Asia/Shanghai'
CELERY_TASK_SERIALIZER = 'json'
CELERY_ENABLE_UTC = True
# CELERY_ACCEPT_CONTENT = [&quot;json&quot;]
# CELERY_RESULT_SERIALIZER = 'json'
# CELERY_TASK_RESULT_EXPIRES = 60 * 60 * 24
# CELERY_ACCEPT_CONTENT = [&quot;json&quot;]"><pre class="notranslate"><code class="notranslate">BROKER_URL = 'redis://xxxxxx:6379/13'
CELERY_RESULT_BACKEND = 'django-db'

CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'Asia/Shanghai'
CELERY_TASK_SERIALIZER = 'json'
CELERY_ENABLE_UTC = True
# CELERY_ACCEPT_CONTENT = ["json"]
# CELERY_RESULT_SERIALIZER = 'json'
# CELERY_TASK_RESULT_EXPIRES = 60 * 60 * 24
# CELERY_ACCEPT_CONTENT = ["json"]
</code></pre></div>
<h2 dir="auto">Required Dependencies</h2>

<ul dir="auto">
<li><strong>Minimal Python Version</strong>: 3.7.5</li>
<li><strong>Minimal Celery Version</strong>: 4.4.5</li>
<li><strong>Minimal Kombu Version</strong>:  4.6.10</li>
<li><strong>Minimal Broker Version</strong>: redis 3.5.3</li>
<li><strong>Minimal Result Backend Version</strong>: PyMySQL 0.9.3</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: Window10</li>
<li><strong>Minimal Broker Client Version</strong>: Redis</li>
<li><strong>Minimal Result Backend Client Version</strong>: django-db</li>
</ul>
<h3 dir="auto">Python Packages</h3>

<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<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><p dir="auto">task code：</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@app.task  
def send_sms2(mobile):
    print(&quot;向手机号%s发送短信成功2!&quot; % mobile)
    time.sleep(1)
    return &quot;向手机号%s发送短信成功!!&quot; % mobile"><pre class="notranslate"><code class="notranslate">@app.task  
def send_sms2(mobile):
    print("向手机号%s发送短信成功2!" % mobile)
    time.sleep(1)
    return "向手机号%s发送短信成功!!" % mobile
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>

<p dir="auto">Chinese used UTF-8 format to displayed in normally and the SQL database(may include others)</p>
<h1 dir="auto">Actual Behavior</h1>

<p dir="auto">Chinese used Unicode format to display</p>