Skip to content

Commit

Permalink
feat(hybrid-cloud): Ensure release registry cache is available in con…
Browse files Browse the repository at this point in the history
…trol (#86400)

When [setting up the AWS integration in
Sentry](https://docs.sentry.io/organization/integrations/cloud-monitoring/aws-lambda/)
and trying to automatically add the lambda layer to lambda functions the
underlying code encounters an empty release-registry cache:
https://sentry.sentry.io/issues/5289437499/events/f3e461d3164a442587c3f9da8ef86255/

This happens from this view: 

![image](https://github.com/user-attachments/assets/55ef7664-ba11-4677-8c98-e2d9cc139233)

But it is possible to do from this view:

![image](https://github.com/user-attachments/assets/5dd745d4-2f5c-4c4a-938c-9522c0a66b9d)

From the linked issue above, it looks like that code runs in the control
silo, but the task to populate the cache with release-registry data is
only running for region silos.

This PR adds the celery task to the control queue.

Related: #85322,
#86365

Might stem from: #53038
  • Loading branch information
andreiborza authored Mar 5, 2025
1 parent f89a334 commit e868ee8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sentry/conf/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,12 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
"schedule": timedelta(seconds=10),
"options": {"expires": 60, "queue": "webhook.control"},
},
"fetch-release-registry-data": {
"task": "sentry.tasks.release_registry.fetch_release_registry_data",
# Run every 5 minutes
"schedule": crontab(minute="*/5"),
"options": {"expires": 3600},
},
}

# Most tasks run in the regions
Expand Down

0 comments on commit e868ee8

Please sign in to comment.