Skip to content
Snippets Groups Projects

Explicitely log a warning when the helper doesn't support cache

Merged Manon Blanco requested to merge cache-explicit-warning-when-unsupported into master
All threads resolved!
Files
6
@@ -6,6 +6,7 @@ from collections.abc import Iterator
from enum import Enum
from arkindex_worker import logger
from arkindex_worker.cache import unsupported_cache
from arkindex_worker.models import Dataset, Element
@@ -68,6 +69,7 @@ class DatasetMixin:
return map(format_result, list(results))
@unsupported_cache
def update_dataset_state(self, dataset: Dataset, state: DatasetState) -> Dataset:
"""
Partially updates a dataset state through the API.
Loading