File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 55
66import aiohttp
77import cachetools
8- import sentry_sdk
98from aiohttp import web
10- from sentry_sdk .integrations .celery import CeleryIntegration
119from gidgethub import aiohttp as gh_aiohttp
1210from gidgethub import routing , sansio
1311
2018cache = cachetools .LRUCache (maxsize = 500 )
2119
2220
23- sentry_sdk .init (os .environ .get ("SENTRY_DSN" ), integrations = [CeleryIntegration ()])
24-
25-
2621async def main (request ):
2722 try :
2823 body = await request .read ()
Original file line number Diff line number Diff line change 1- import celery
21import asyncio
32import os
43import subprocess
5- import aiohttp
6- from gidgethub import aiohttp as gh_aiohttp
74
5+ import aiohttp
86import cachetools
9-
10- from celery import bootsteps
11-
7+ import celery
128from cherry_picker import cherry_picker
9+ from celery import bootsteps
10+ from gidgethub import aiohttp as gh_aiohttp
11+ import sentry_sdk
12+ from sentry_sdk .integrations .celery import CeleryIntegration
1313
1414from . import util
1515
16+
1617app = celery .Celery ("backport_cpython" )
1718
1819app .conf .update (
2122)
2223
2324cache = cachetools .LRUCache (maxsize = 500 )
25+ sentry_sdk .init (os .environ .get ("SENTRY_DSN" ), integrations = [CeleryIntegration ()])
26+
2427
2528CHERRY_PICKER_CONFIG = {
2629 "team" : "python" ,
You can’t perform that action at this time.
0 commit comments