diff --git a/backend/onyx/connectors/file/connector.py b/backend/onyx/connectors/file/connector.py index 58d64657019..4e63dd17436 100644 --- a/backend/onyx/connectors/file/connector.py +++ b/backend/onyx/connectors/file/connector.py @@ -24,6 +24,7 @@ from onyx.file_store.file_store import get_default_file_store from onyx.utils.logger import setup_logger + logger = setup_logger() @@ -229,21 +230,18 @@ class LocalFileConnector(LoadConnector): # Note: file_names is a required parameter, but should not break backwards compatibility. # If add_file_names migration is not run, old file connector configs will not have file_names. - # This is fine because the configs are not re-used to instantiate the connector. # file_names is only used for display purposes in the UI and file_locations is used as a fallback. def __init__( self, file_locations: list[Path | str], - file_names: list[ - str - ], # Must accept this parameter as connector_specific_config is unpacked as args - zip_metadata: dict[str, Any], + file_names: list[str] | None = None, + zip_metadata: dict[str, Any] | None = None, batch_size: int = INDEX_BATCH_SIZE, ) -> None: self.file_locations = [str(loc) for loc in file_locations] self.batch_size = batch_size self.pdf_pass: str | None = None - self.zip_metadata = zip_metadata + self.zip_metadata = zip_metadata or {} def load_credentials(self, credentials: dict[str, Any]) -> dict[str, Any] | None: self.pdf_pass = credentials.get("pdf_password") diff --git a/deployment/helm/charts/onyx/Chart.yaml b/deployment/helm/charts/onyx/Chart.yaml index a559d5bcaab..11eb11afd5f 100644 --- a/deployment/helm/charts/onyx/Chart.yaml +++ b/deployment/helm/charts/onyx/Chart.yaml @@ -5,7 +5,7 @@ home: https://www.onyx.app/ sources: - "https://github.com/onyx-dot-app/onyx" type: application -version: 0.2.5 +version: 0.2.6 appVersion: latest annotations: category: Productivity diff --git a/deployment/helm/charts/onyx/templates/celery-worker-user-files-indexing.yaml b/deployment/helm/charts/onyx/templates/celery-worker-user-files-indexing.yaml index 92b0b5ade4c..3f8b89db068 100644 --- a/deployment/helm/charts/onyx/templates/celery-worker-user-files-indexing.yaml +++ b/deployment/helm/charts/onyx/templates/celery-worker-user-files-indexing.yaml @@ -43,7 +43,7 @@ spec: [ "celery", "-A", - "onyx.background.celery.versioned_apps.docprocessing", + "onyx.background.celery.versioned_apps.docfetching", "worker", "--loglevel=INFO", "--hostname=user-files-indexing@%n",