Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

17 changes: 0 additions & 17 deletions packages/discovery-provider/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,6 @@ def configure_celery(celery, test_config=None):
if "url_read_replica" in test_config["db"]:
database_url_read_replica = test_config["db"]["url_read_replica"]

audius_solana_plays_indexing_interval_s = int(
os.getenv("audius_solana_plays_indexing_interval_s", 30)
)

# Update celery configuration
celery.conf.update(
imports=[
Expand All @@ -313,7 +309,6 @@ def configure_celery(celery, test_config=None):
"src.tasks.cache_user_balance",
"src.monitors.monitoring_queue",
"src.tasks.cache_trending_playlists",
"src.tasks.index_solana_plays",
"src.tasks.index_challenges",
"src.tasks.index_user_bank",
"src.tasks.index_payment_router",
Expand Down Expand Up @@ -370,18 +365,6 @@ def configure_celery(celery, test_config=None):
"task": "cache_trending_playlists",
"schedule": timedelta(minutes=30),
},
**(
{
"index_solana_plays": {
"task": "index_solana_plays",
"schedule": timedelta(
seconds=audius_solana_plays_indexing_interval_s
),
}
}
if environment == "prod"
else {}
),
"index_challenges": {
"task": "index_challenges",
"schedule": timedelta(seconds=5),
Expand Down
4 changes: 0 additions & 4 deletions packages/discovery-provider/src/queries/get_sol_plays.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from src import exceptions
from src.models.social.play import Play
from src.queries.sol_play_helpers import get_sum_aggregate_plays, get_track_play_counts
from src.tasks.index_solana_plays import cache_latest_sol_play_db_tx
from src.utils import helpers
from src.utils.cache_solana_program import CachedProgramTxInfo, get_cached_sol_tx
from src.utils.db_session import get_db_read_replica
Expand Down Expand Up @@ -117,9 +116,6 @@ def get_latest_cached_sol_play_db(redis) -> CachedProgramTxInfo:
latest_sol_play["created_at"].timestamp() # pylint: disable=E1136
),
}
# If found, re-cache value to avoid repeated DB hits
if latest_sol_play_db:
cache_latest_sol_play_db_tx(redis, latest_sol_play_db)
return latest_sol_play_db


Expand Down
Loading