Skip to content

Commit

Permalink
feat(llm): add celery settings to all relevant settings files
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed Feb 4, 2024
1 parent 0c64a20 commit 6087140
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ data:
'ROTATE_REFRESH_TOKENS': True,
'SIGNING_KEY': os.getenv("SIMPLE_JWT_SIGNING_KEY"),
}
# Celery
CELERY_REDIS_PORT = os.getenv("CELERY_REDIS_PORT")
CELERY_REDIS_BROKER_DB_NUM = os.getenv("CELERY_REDIS_BROKER_DB_NUM")
CELERY_REDIS_RESULT_BACKEND_DB_NUM = os.getenv("CELERY_REDIS_RESULT_BACKEND_DB_NUM")
# Either define CELERY_SENTINEL_HEADLESS_URL if using sentinel or CELERY_REDIS_URL for a simple redis instance
CELERY_SENTINEL_HEADLESS_URL = os.getenv("CELERY_SENTINEL_HEADLESS_URL")
CELERY_REDIS_URL = os.getenv("CELERY_REDIS_URL")
MOBILE_APP_KEY = os.getenv("MOBILE_APP_KEY")
Expand Down
5 changes: 5 additions & 0 deletions helm-chart/sefaria-project/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,11 @@ secrets:
# RECAPTCHA_PUBLIC_KEY:
# RECAPTCHA_PRIVATE_KEY:
# SIMPLE_JWT_SIGNING_KEY:
# CELERY_REDIS_PORT
# CELERY_REDIS_BROKER_DB_NUM
# CELERY_REDIS_RESULT_BACKEND_DB_NUM
# CELERY_SENTINEL_HEADLESS_URL
# CELERY_REDIS_URL
# MOBILE_APP_KEY:
backupManager:
# If you're using a reference to an existing secret then the data: section
Expand Down
8 changes: 8 additions & 0 deletions sefaria/local_settings_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@
'SIGNING_KEY': 'a signing key: at least 256 bits',
}

# Celery
CELERY_REDIS_PORT = 6379
CELERY_REDIS_BROKER_DB_NUM = 0
CELERY_REDIS_RESULT_BACKEND_DB_NUM = 1
# Either define CELERY_SENTINEL_HEADLESS_URL if using sentinel or CELERY_REDIS_URL for a simple redis instance
CELERY_SENTINEL_HEADLESS_URL = None
CELERY_REDIS_URL = "redis://127.0.0.1"

# Key which identifies the Sefaria app as opposed to a user
# using our API outside of the app. Mainly for registration
MOBILE_APP_KEY = "MOBILE_APP_KEY"
Expand Down
8 changes: 8 additions & 0 deletions sefaria/local_settings_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,14 @@
'SIGNING_KEY': 'a signing key: at least 256 bits',
}

# Celery
CELERY_REDIS_PORT = 6379
CELERY_REDIS_BROKER_DB_NUM = 0
CELERY_REDIS_RESULT_BACKEND_DB_NUM = 1
# Either define CELERY_SENTINEL_HEADLESS_URL if using sentinel or CELERY_REDIS_URL for a simple redis instance
CELERY_SENTINEL_HEADLESS_URL = None
CELERY_REDIS_URL = "redis://127.0.0.1"

# Key which identifies the Sefaria app as opposed to a user
# using our API outside of the app. Mainly for registration
MOBILE_APP_KEY = "MOBILE_APP_KEY"
Expand Down

0 comments on commit 6087140

Please sign in to comment.