mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
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:
@@ -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,
|
||||
|
||||
@@ -9,7 +9,6 @@ from utils import torrent
|
||||
from mediafusion_scrapy import task
|
||||
from scrapers import (
|
||||
tv,
|
||||
imdb_data,
|
||||
trackers,
|
||||
helpers,
|
||||
prowlarr,
|
||||
|
||||
Reference in New Issue
Block a user