Skip to content

Commit

Permalink
Merge pull request #225 from ecmwf-projects/fix-broker-engine-instant…
Browse files Browse the repository at this point in the history
…iation

Temporary workaround for broker settings changes
  • Loading branch information
mcucchi9 authored Nov 19, 2024
2 parents 28b1109 + 3c16cf1 commit c76f6e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cads_processing_api_service/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def get_compute_sessionmaker(
raise ValueError(f"Invalid connection mode: {str(mode)}")
broker_engine = sqlalchemy.create_engine(
connection_string,
pool_timeout=broker_settings.pool_timeout,
pool_recycle=broker_settings.pool_recycle,
pool_size=broker_settings.pool_size,
max_overflow=broker_settings.max_overflow,
pool_timeout=broker_settings.broker_pool_timeout,
pool_recycle=broker_settings.broker_pool_recycle,
pool_size=broker_settings.broker_pool_size,
max_overflow=broker_settings.broker_max_overflow,
)
return sqlalchemy.orm.sessionmaker(broker_engine)

Expand Down

0 comments on commit c76f6e6

Please sign in to comment.