Skip to content

Commit db97d96

Browse files
authored
Wireup comparisons to run upon size analysis completion (#99445)
<!-- Describe your PR here. --> <!-- Sentry employees and contractors can delete or ignore the following. --> ### Legal Boilerplate Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
1 parent c04e7d5 commit db97d96

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/sentry/preprod/tasks.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
)
2020
from sentry.preprod.producer import produce_preprod_artifact_to_kafka
2121
from sentry.preprod.size_analysis.models import SizeAnalysisResults
22+
from sentry.preprod.size_analysis.tasks import compare_preprod_artifact_size_analysis
2223
from sentry.preprod.vcs.status_checks.size.tasks import create_preprod_status_check_task
2324
from sentry.silo.base import SiloMode
2425
from sentry.tasks.assemble import (
@@ -441,6 +442,15 @@ def _assemble_preprod_artifact_size_analysis(
441442
}
442443
)
443444

445+
# Trigger size analysis comparison if eligible
446+
compare_preprod_artifact_size_analysis.apply_async(
447+
kwargs={
448+
"project_id": project.id,
449+
"org_id": org_id,
450+
"artifact_id": artifact_id,
451+
}
452+
)
453+
444454

445455
@instrumented_task(
446456
name="sentry.preprod.tasks.assemble_preprod_artifact_size_analysis",

0 commit comments

Comments
 (0)