diff --git a/src/sentry/preprod/tasks.py b/src/sentry/preprod/tasks.py index 36f5a25403bc01..843ffeaa57076d 100644 --- a/src/sentry/preprod/tasks.py +++ b/src/sentry/preprod/tasks.py @@ -19,6 +19,7 @@ ) from sentry.preprod.producer import produce_preprod_artifact_to_kafka from sentry.preprod.size_analysis.models import SizeAnalysisResults +from sentry.preprod.size_analysis.tasks import compare_preprod_artifact_size_analysis from sentry.preprod.vcs.status_checks.size.tasks import create_preprod_status_check_task from sentry.silo.base import SiloMode from sentry.tasks.assemble import ( @@ -441,6 +442,15 @@ def _assemble_preprod_artifact_size_analysis( } ) + # Trigger size analysis comparison if eligible + compare_preprod_artifact_size_analysis.apply_async( + kwargs={ + "project_id": project.id, + "org_id": org_id, + "artifact_id": artifact_id, + } + ) + @instrumented_task( name="sentry.preprod.tasks.assemble_preprod_artifact_size_analysis",