Skip to content

Commit

Permalink
Merge pull request #117 from marwoodandrew/sd-5414
Browse files Browse the repository at this point in the history
[SD-5414] Default spike expiry setting
  • Loading branch information
Mayur Dhamanwala authored Sep 7, 2016
2 parents 0eb4aff + 55809b2 commit bd8d474
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,6 @@ def env(variable, fallback_value=None):
is_testing = os.environ.get('SUPERDESK_TESTING', '').lower() == 'true'
ELASTICSEARCH_FORCE_REFRESH = is_testing
ELASTICSEARCH_AUTO_AGGREGATIONS = False

# This setting is used to overide the desk/stage expiry for items to expire from the spike
SPIKE_EXPIRY_MINUTES = int(env('SPIKE_EXPIRY_MINUTES', 3 * 24 * 60))

0 comments on commit bd8d474

Please sign in to comment.