Skip to content

Commit

Permalink
ref: fix typing for sentry.debug_files.artifact_bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile-sentry committed Jun 14, 2024
1 parent f98a882 commit de17687
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sentry/debug_files/artifact_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,15 @@ def index_artifact_bundles_for_release(
# debounce this in case there is a persistent error?


def backfill_artifact_bundle_db_indexing(organization_id: int, release: str, dist: str):
def backfill_artifact_bundle_db_indexing(organization_id: int, release: str, dist: str) -> None:
artifact_bundles = ArtifactBundle.objects.filter(
releaseartifactbundle__organization_id=organization_id,
releaseartifactbundle__release_name=release,
releaseartifactbundle__dist_name=dist,
indexing_state=ArtifactBundleIndexingState.NOT_INDEXED.value,
)
artifact_bundles = [(ab, None) for ab in artifact_bundles]

index_artifact_bundles_for_release(organization_id, artifact_bundles)
index_artifact_bundles_for_release(organization_id, [(ab, None) for ab in artifact_bundles])


@sentry_sdk.tracing.trace
Expand Down

0 comments on commit de17687

Please sign in to comment.