Skip to content

Commit

Permalink
[#3994] Perform a lookup in config dict to get a default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdillon committed Jan 8, 2019
1 parent 76d9786 commit dc7532d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/jobs.py
Expand Up @@ -36,7 +36,7 @@
log = logging.getLogger(__name__)

DEFAULT_QUEUE_NAME = u'default'
DEFAULT_JOB_TIMEOUT = config[u'rq.bg_job_timeout']
DEFAULT_JOB_TIMEOUT = config.get[u'rq.bg_job_timeout', 180]

# RQ job queues. Do not use this directly, use ``get_queue`` instead.
_queues = {}
Expand Down

0 comments on commit dc7532d

Please sign in to comment.