Remove unoptimized IMDb and TMDB background tasks.

This commit eliminates unused Dramatiq background tasks and related scheduler jobs for processing and updating IMDb and TMDB data.
This commit is contained in:
mhdzumair
2024-12-22 22:50:24 +05:30
parent d6b0fe162d
commit 5343badfaa
5 changed files with 6 additions and 158 deletions
-10
View File
@@ -3,7 +3,6 @@ from apscheduler.triggers.cron import CronTrigger
from db.config import settings
from mediafusion_scrapy.task import run_spider
from scrapers.imdb_data import fetch_movie_ids_to_update
from scrapers.background_scraper import run_background_search
from scrapers.feed_scraper import run_prowlarr_feed_scraper, run_jackett_feed_scraper
from scrapers.trackers import update_torrent_seeders
@@ -123,15 +122,6 @@ def setup_scheduler(scheduler: AsyncIOScheduler):
},
)
scheduler.add_job(
fetch_movie_ids_to_update.send,
CronTrigger.from_crontab(settings.update_imdb_data_crontab),
name="update_imdb_data",
kwargs={
"crontab_expression": settings.update_imdb_data_crontab,
},
)
if not settings.disable_motogp_tgx_scheduler:
scheduler.add_job(
run_spider.send,
-1
View File
@@ -9,7 +9,6 @@ from utils import torrent
from mediafusion_scrapy import task
from scrapers import (
tv,
imdb_data,
trackers,
helpers,
prowlarr,