Skip to content

Commit

Permalink
Merge pull request #216 from pass-culture/staging
Browse files Browse the repository at this point in the history
MEP #20240905
  • Loading branch information
cdelabre authored Sep 5, 2024
2 parents 1f5dc3a + 46af823 commit f290ebb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from huggy.utils.hash import hash_from_keys

VERTEX_CACHE = Cache(
Cache.MEMORY, ttl=6000, serializer=PickleSerializer(), namespace="vertex_cache"
Cache.MEMORY, ttl=3000, serializer=PickleSerializer(), namespace="vertex_cache"
)


Expand Down
2 changes: 1 addition & 1 deletion apps/recommendation/api/src/huggy/core/scorer/offer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from sqlalchemy.ext.asyncio import AsyncSession

OFFER_DB_CACHE = Cache(
Cache.MEMORY, ttl=6000, serializer=PickleSerializer(), namespace="offer_db_cache"
Cache.MEMORY, ttl=3000, serializer=PickleSerializer(), namespace="offer_db_cache"
)


Expand Down
8 changes: 5 additions & 3 deletions apps/recommendation/api/src/huggy/utils/env_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
"RANKING_VERSION_B_ENDPOINT_NAME",
f"recommendation_user_ranking_version_b_{ENV_SHORT_NAME}",
)
NUMBER_OF_RECOMMENDATIONS = os.environ.get(
"NUMBER_OF_RECOMMENDATIONS",
40,
NUMBER_OF_RECOMMENDATIONS = int(
os.environ.get(
"NUMBER_OF_RECOMMENDATIONS",
60,
)
)

0 comments on commit f290ebb

Please sign in to comment.