Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Nov 21, 2024
1 parent f7bc615 commit d6067c6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.requirements
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV UV_LINK_MODE=copy \
UV_COMPILE_BYTECODE=1 \
UV_PYTHON_DOWNLOADS=never \
UV_PYTHON=python \
UV_PROJECT_ENVIRONMENT=/worker
UV_PROJECT_ENVIRONMENT=/api

# Then, add the rest of the project source code and install it
# Installing separately from its dependencies allows optimal layer caching
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies = [
"redis",
"regex",
"requests",
"sentry-sdk>=2.13.0",
"sentry-sdk>=2.18.0",
"setproctitle",
"shared",
"simplejson",
Expand Down Expand Up @@ -79,7 +79,6 @@ dev-dependencies = [
"vcrpy",
]


[tool.uv.sources]
codecovopentelem = { git = "https://github.com/codecov/opentelem-python", rev = "df1e241927d4794fc0e24f96431f0fb730edac21" }
shared = { git = "https://github.com/codecov/shared", rev = "9c31870de026a8a3f026f0753b1991e8c832fadb" }
15 changes: 0 additions & 15 deletions services/task/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
from datetime import datetime, timedelta
from typing import Iterable, List, Optional, Tuple

import celery
from celery import Celery, chain, group, signature
from celery.canvas import Signature
from django.conf import settings
from sentry_sdk import set_tag
from sentry_sdk.integrations.celery import _wrap_apply_async
from shared import celery_config

from core.models import Repository
Expand All @@ -19,17 +15,6 @@

log = logging.getLogger(__name__)

if settings.SENTRY_ENV:
celery.group.apply_async = _wrap_apply_async(celery.group.apply_async)
celery.chunks.apply_async = _wrap_apply_async(celery.chunks.apply_async)
celery.canvas._chain.apply_async = _wrap_apply_async(
celery.canvas._chain.apply_async
)
celery.canvas._chord.apply_async = _wrap_apply_async(
celery.canvas._chord.apply_async
)
Signature.apply_async = _wrap_apply_async(Signature.apply_async)


class TaskService(object):
def _create_signature(self, name, args=None, kwargs=None, immutable=False):
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d6067c6

Please sign in to comment.