RemiRigal / Plex-Auto-Languages

Automated language selection for Plex TV Shows !
MIT License
488 stars 18 forks source link

Scheduler task high cpu usage #105

Open skosnore opened 2 months ago

skosnore commented 2 months ago

Got high cpu usage after every night and need to restart Plex-Auto-Languages image

LOG: 2024-09-13 02:00:01,727 [INFO] Starting scheduler task Exception in thread Thread-2: Traceback (most recent call last): File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/app/plex_auto_languages/utils/scheduler.py", line 22, in run schedule.run_pending() File "/usr/local/lib/python3.8/site-packages/schedule/init.py", line 822, in run_pending default_scheduler.run_pending() File "/usr/local/lib/python3.8/site-packages/schedule/init.py", line 100, in run_pending self._run_job(job) File "/usr/local/lib/python3.8/site-packages/schedule/init.py", line 172, in _run_job ret = job.run() File "/usr/local/lib/python3.8/site-packages/schedule/init.py", line 693, in run ret = self.job_func() File "main.py", line 107, in scheduler_callback self.plex.start_deep_analysis() File "/app/plex_auto_languages/plex_server.py", line 283, in start_deep_analysis episode.reload() File "/usr/local/lib/python3.8/site-packages/plexapi/base.py", line 394, in reload return self._reload(key=key, **kwargs) File "/usr/local/lib/python3.8/site-packages/plexapi/base.py", line 952, in _reload raise NotImplementedError('History objects cannot be reloaded. Use source() to get the source media item.') NotImplementedError: History objects cannot be reloaded. Use source() to get the source media item.