Skip to content

Commit

Permalink
optimize log
Browse files Browse the repository at this point in the history
  • Loading branch information
JoinTyang committed Jan 23, 2025
1 parent 8aede81 commit 5e042fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pyjwt==2.9.*
pymysql==1.1.*
gevent==24.2.*
Flask==3.0.*
apscheduler==3.10.*
pyexiftool==0.4.*
beautifulsoup4==4.12.3
markdown-it-py==3.0.0
Expand Down
12 changes: 0 additions & 12 deletions seasearch/index_task/filename_index_updater.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import logging
import time
from threading import Thread, Event
from multiprocessing import Process

from apscheduler.triggers.interval import IntervalTrigger
from apscheduler.schedulers.gevent import GeventScheduler
from apscheduler.schedulers.background import BackgroundScheduler
from seafevents.seasearch.index_store.index_manager import IndexManager
from seafevents.seasearch.index_store.repo_file_name_index import RepoFileNameIndex
from seafevents.seasearch.index_store.repo_status_index import RepoStatusIndex
Expand All @@ -17,10 +12,6 @@

logger = logging.getLogger(__name__)

# logger = logging

# logger.Formatter('[%(asctime)s] [%(levelname)s] %(message)s')


class RepoFilenameIndexUpdater(object):
def __init__(self, config):
Expand Down Expand Up @@ -143,10 +134,7 @@ def update_repo_file_name_indexes(repo_status_filename_index, repo_filename_inde

clear_deleted_repo(repo_status_filename_index, repo_filename_index, index_manager, all_repos)

# from concurrent.futures import ProcessPoolExecutor
from apscheduler.executors.pool import ProcessPoolExecutor

# class RepoFilenameIndexUpdaterTimer(Process):
class RepoFilenameIndexUpdaterTimer(Thread):
def __init__(self, repo_status_filename_index, repo_filename_index, index_manager, repo_data, interval):
super(RepoFilenameIndexUpdaterTimer, self).__init__()
Expand Down

0 comments on commit 5e042fb

Please sign in to comment.