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 5
5
6
6
import aiohttp
7
7
import cachetools
8
- import sentry_sdk
9
8
from aiohttp import web
10
- from sentry_sdk .integrations .celery import CeleryIntegration
11
9
from gidgethub import aiohttp as gh_aiohttp
12
10
from gidgethub import routing , sansio
13
11
20
18
cache = cachetools .LRUCache (maxsize = 500 )
21
19
22
20
23
- sentry_sdk .init (os .environ .get ("SENTRY_DSN" ), integrations = [CeleryIntegration ()])
24
-
25
-
26
21
async def main (request ):
27
22
try :
28
23
body = await request .read ()
Original file line number Diff line number Diff line change 1
- import celery
2
1
import asyncio
3
2
import os
4
3
import subprocess
5
- import aiohttp
6
- from gidgethub import aiohttp as gh_aiohttp
7
4
5
+ import aiohttp
8
6
import cachetools
9
-
10
- from celery import bootsteps
11
-
7
+ import celery
12
8
from 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
13
13
14
14
from . import util
15
15
16
+
16
17
app = celery .Celery ("backport_cpython" )
17
18
18
19
app .conf .update (
21
22
)
22
23
23
24
cache = cachetools .LRUCache (maxsize = 500 )
25
+ sentry_sdk .init (os .environ .get ("SENTRY_DSN" ), integrations = [CeleryIntegration ()])
26
+
24
27
25
28
CHERRY_PICKER_CONFIG = {
26
29
"team" : "python" ,
You can’t perform that action at this time.
0 commit comments