old_contents: ###########################################################################
  #          (C) Vrije Universiteit, Amsterdam (the Netherlands)            #
  #                                                                         #
  # This file is part of AmCAT - The Amsterdam Content Analysis Toolkit     #
  #                                                                         #
  # AmCAT is free software: you can redistribute it and/or modify it under  #
  # the terms of the GNU Affero General Public License as published by the  #
  # Free Software Foundation, either version 3 of the License, or (at your  #
  # option) any later version.                                              #
  #                                                                         #
  # AmCAT is distributed in the hope that it will be useful, but WITHOUT    #
  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or   #
  # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public     #
  # License for more details.                                               #
  #                                                                         #
  # You should have received a copy of the GNU Affero General Public        #
  # License along with AmCAT.  If not, see <http://www.gnu.org/licenses/>.  #
  ###########################################################################
  from kombu import Exchange, Queue
  import os
  
  CELERY_RESULT_BACKEND = 'amqp'
  CELERY_TASK_RESULT_EXPIRES = 18000  # 5 hours.
  
  _qname = os.environ.get('AMCAT_CELERY_QUEUE', 'amcat')
  CELERY_QUEUES = (
      Queue(_qname, Exchange('default'), routing_key=_qname),
  )
  CELERY_DEFAULT_QUEUE = _qname
  CELERY_DEFAULT_EXCHANGE_TYPE = 'direct'
  CELERY_DEFAULT_ROUTING_KEY = _qname
  
  CELERY_TASK_SERIALIZER = 'json'
  CELERY_RESULT_SERIALIZER = 'json'
  CELERY_ACCEPT_CONTENT=['json']
  
new_contents: ###########################################################################
  #          (C) Vrije Universiteit, Amsterdam (the Netherlands)            #
  #                                                                         #
  # This file is part of AmCAT - The Amsterdam Content Analysis Toolkit     #
  #                                                                         #
  # AmCAT is free software: you can redistribute it and/or modify it under  #
  # the terms of the GNU Affero General Public License as published by the  #
  # Free Software Foundation, either version 3 of the License, or (at your  #
  # option) any later version.                                              #
  #                                                                         #
  # AmCAT is distributed in the hope that it will be useful, but WITHOUT    #
  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or   #
  # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public     #
  # License for more details.                                               #
  #                                                                         #
  # You should have received a copy of the GNU Affero General Public        #
  # License along with AmCAT.  If not, see <http://www.gnu.org/licenses/>.  #
  ###########################################################################
  from kombu import Exchange, Queue
  import os
  
  CELERY_RESULT_BACKEND = 'amqp'
  CELERY_TASK_RESULT_EXPIRES = 3600
  
  _qname = os.environ.get('AMCAT_CELERY_QUEUE', 'amcat')
  CELERY_QUEUES = (
      Queue(_qname, Exchange('default'), routing_key=_qname),
  )
  CELERY_DEFAULT_QUEUE = _qname
  CELERY_DEFAULT_EXCHANGE_TYPE = 'direct'
  CELERY_DEFAULT_ROUTING_KEY = _qname
  
  CELERY_TASK_SERIALIZER = 'json'
  CELERY_RESULT_SERIALIZER = 'json'
  CELERY_ACCEPT_CONTENT=['json']
  
subject: Decrease celery task timeout to be consistent with xtas default