Skip to content

Commit

Permalink
Reversing env var config enabling logic (but same config)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimleroyer committed Oct 30, 2023
1 parent 9cc04c2 commit b51f63f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ class Config(object):
# Timestamp in epoch milliseconds to seed the bounce rate. We will seed data for (24, the below config) included.
FF_BOUNCE_RATE_SEED_EPOCH_MS = os.getenv("FF_BOUNCE_RATE_SEED_EPOCH_MS", False)
# Feature flag to enable custom retry policies such as lowering retry period for certain priority lanes.
FF_CELERY_CUSTOM_TASK_PARAMS = env.bool("FF_CELERY_CUSTOM_TASK_PARAMS", False)
FF_CELERY_CUSTOM_TASK_PARAMS = env.bool("FF_CELERY_CUSTOM_TASK_PARAMS", True)
FF_CLOUDWATCH_METRICS_ENABLED = env.bool("FF_CLOUDWATCH_METRICS_ENABLED", False)
# Feature flags for email_daily_limit
FF_EMAIL_DAILY_LIMIT = env.bool("FF_EMAIL_DAILY_LIMIT", False)
Expand Down Expand Up @@ -655,8 +655,6 @@ class Development(Config):
API_HOST_NAME = "http://localhost:6011"
API_RATE_LIMIT_ENABLED = True

FF_CELERY_CUSTOM_TASK_PARAMS = True


class Test(Development):
NOTIFY_EMAIL_DOMAIN = os.getenv("NOTIFY_EMAIL_DOMAIN", "notification.canada.ca")
Expand Down Expand Up @@ -691,7 +689,6 @@ class Test(Development):
CRM_GITHUB_PERSONAL_ACCESS_TOKEN = "test-token"
CRM_ORG_LIST_URL = "https://test-url.com"

FF_CELERY_CUSTOM_TASK_PARAMS = True
FF_EMAIL_DAILY_LIMIT = False


Expand All @@ -710,6 +707,7 @@ class Production(Config):
API_RATE_LIMIT_ENABLED = True
CHECK_PROXY_HEADER = False
CRONITOR_ENABLED = False
FF_CELERY_CUSTOM_TASK_PARAMS = False


class Staging(Production):
Expand Down

0 comments on commit b51f63f

Please sign in to comment.