Skip to content

Commit

Permalink
Merge pull request #6 from PSNAppz/develop
Browse files Browse the repository at this point in the history
Move redis urls to env
  • Loading branch information
venky-ganapathy authored Aug 22, 2024
2 parents 7dbdbfc + fe26685 commit 69af117
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def get_engine():

celery_app = Celery(
"example_bank_celery_tasks",
broker="redis://localhost:6379/0",
backend="redis://localhost:6379/0",
broker=_config.celery_broker_url,
backend=_config.celery_backend_url,
include=["openg2p_g2p_bridge_example_bank_celery.tasks"],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ class Settings(BaseSettings):
db_dbname: str = "example_bank_db"
db_driver: str = "postgresql"

celery_broker_url: str = "redis://localhost:6379/0"
celery_backend_url: str = "redis://localhost:6379/0"

process_payment_frequency: int = 3600
payment_initiate_attempts: int = 3

0 comments on commit 69af117

Please sign in to comment.