force email socket timeout to 10 seconds (#26351)

This commit is contained in:
Emmanuel Cazenave 2018-09-14 10:54:21 +02:00
parent a7e6c1748a
commit 1340956832
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,12 @@ ADMINS = (
EMAIL_SUBJECT_PREFIX = '[%s] ' % PROJECT_NAME
# sockets default timeout can be set to a small value in another thread by kombu
# https://github.com/celery/kombu/issues/838
# This prevents sockets created in smtplib to rely on the default timeout
# by setting their timeout value to 10 seconds.
EMAIL_TIMEOUT = 10.0
# For high availability installations with multiple instances of Publik
# components, one should disable cron jobs execution on secondary servers;
# set the following variable True disables all tenant_commands launched with