Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 58d4301

Browse files
fix: impl_type detected in upload.py (#1159)
1 parent 669e96e commit 58d4301

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

services/test_analytics/utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
import mmh3
2-
from shared.config import get_config
3-
4-
5-
def should_use_timeseries(repoid: int) -> bool:
6-
timeseries_enabled = get_config("setup", "timeseries", "enabled", default=False)
7-
if timeseries_enabled:
8-
return True
9-
return False
102

113

124
def calc_test_id(name: str, classname: str, testsuite: str) -> bytes:

tasks/upload.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import sentry_sdk
1010
from asgiref.sync import async_to_sync
1111
from celery import chain, chord
12+
from django.conf import settings
1213
from django.db import transaction as django_transaction
1314
from django.utils import timezone
1415
from redis import Redis
@@ -772,6 +773,9 @@ def _schedule_ta_processing_task(
772773
commit_report: CommitReport,
773774
):
774775
new_ta_tasks = NEW_TA_TASKS.check_value(commit.repoid, default="old")
776+
if not settings.TA_TIMESERIES_ENABLED:
777+
new_ta_tasks = "old"
778+
775779
task_group = [
776780
test_results_processor_task.s(
777781
repoid=commit.repoid,

0 commit comments

Comments
 (0)