Skip to content

Commit

Permalink
Squash #2041 - patch from init file
Browse files Browse the repository at this point in the history
  • Loading branch information
MackHalliday committed Nov 19, 2024
1 parent 107d306 commit 47000ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from flask_marshmallow import Marshmallow
from flask_migrate import Migrate
from time import monotonic
from ddtrace import patch
from notifications_utils.clients.zendesk.zendesk_client import ZendeskClient
from notifications_utils.clients.statsd.statsd_client import StatsdClient
from notifications_utils.clients.redis.redis_client import RedisClient
Expand Down Expand Up @@ -41,6 +42,7 @@

load_dotenv()

patch(celery=True)

migrate = Migrate()
ma = Marshmallow()
Expand Down
5 changes: 2 additions & 3 deletions app/celery/celery.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import time

import celery
from celery import Task
from celery import Task, Celery
from celery.signals import worker_process_shutdown, worker_shutting_down, worker_process_init
from flask import current_app

Expand Down Expand Up @@ -83,7 +82,7 @@ def __call__(
return NotifyTask


class NotifyCelery(celery.Celery):
class NotifyCelery(Celery):
def init_app(
self,
app,
Expand Down

0 comments on commit 47000ee

Please sign in to comment.