Develop #41

Merged
tao.chen merged 96 commits from develop into main 2026-09-02 10:15:06 +08:00
6 changed files with 5 additions and 5 deletions
Showing only changes of commit c89132abc8 - Show all commits
+1 -1
View File
@@ -87,7 +87,7 @@ class NodeExecutor:
store = self._bucket_stores.get(bucket_name) store = self._bucket_stores.get(bucket_name)
if store is not None: if store is not None:
return store return store
from schedule.service import build_object_store from schedule.application.service import build_object_store
store = build_object_store(bucket_name=bucket_name) store = build_object_store(bucket_name=bucket_name)
self._bucket_stores[bucket_name] = store self._bucket_stores[bucket_name] = store
+1 -1
View File
@@ -9,7 +9,7 @@ from common.db import create_database_engine, create_session_factory
from common.service_app import create_service_app from common.service_app import create_service_app
from loguru import logger from loguru import logger
from schedule.service import ( from schedule.application.service import (
SchedulerService, SchedulerService,
build_object_store, build_object_store,
build_storage_http_client, build_storage_http_client,
+1 -1
View File
@@ -87,7 +87,7 @@ class NodeExecutor:
store = self._bucket_stores.get(bucket_name) store = self._bucket_stores.get(bucket_name)
if store is not None: if store is not None:
return store return store
from schedule.service import build_object_store from schedule.application.service import build_object_store
store = build_object_store(bucket_name=bucket_name) store = build_object_store(bucket_name=bucket_name)
self._bucket_stores[bucket_name] = store self._bucket_stores[bucket_name] = store
+2 -2
View File
@@ -61,7 +61,7 @@ def test_store_for_custom_bucket_uses_build_factory(monkeypatch: pytest.MonkeyPa
"""A custom bucket_name must produce a store via ``build_object_store``.""" """A custom bucket_name must produce a store via ``build_object_store``."""
custom_store = MagicMock(name="custom_store") custom_store = MagicMock(name="custom_store")
with patch( with patch(
"schedule.service.build_object_store", "schedule.application.service.build_object_store",
return_value=custom_store, return_value=custom_store,
) as mock_build: ) as mock_build:
executor, _, _ = _make_executor() executor, _, _ = _make_executor()
@@ -75,7 +75,7 @@ def test_store_for_custom_bucket_is_cached(monkeypatch: pytest.MonkeyPatch) -> N
"""Repeated lookups for the same custom bucket must hit the cache.""" """Repeated lookups for the same custom bucket must hit the cache."""
custom_store = MagicMock(name="custom_store") custom_store = MagicMock(name="custom_store")
with patch( with patch(
"schedule.service.build_object_store", "schedule.application.service.build_object_store",
return_value=custom_store, return_value=custom_store,
) as mock_build: ) as mock_build:
executor, _, _ = _make_executor() executor, _, _ = _make_executor()