[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-05-07 06:54:56 +00:00 committed by GitHub
parent ca8a742853
commit 05526ce5e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -88,13 +88,10 @@ def clean_dataset_queries_task() -> None:
except LockError:
end_at = time.perf_counter()
logger.warning(
"clean_dataset_queries_task: lock already held, skip current execution"
)
logger.warning("clean_dataset_queries_task: lock already held, skip current execution")
click.echo(
click.style(
f"clean_dataset_queries_task: skipped (lock already held), "
f"latency: {end_at - start_at:.2f}s",
f"clean_dataset_queries_task: skipped (lock already held), latency: {end_at - start_at:.2f}s",
fg="yellow",
)
)

View File

@ -1,6 +1,5 @@
from unittest.mock import MagicMock, patch
import pytest
from redis.exceptions import LockError
from schedule.clean_dataset_queries_task import _effective_retention_days, clean_dataset_queries_task