-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rollbar error logging to the celery worker
- Loading branch information
Showing
4 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
"""Enable third party extensions.""" | ||
|
||
import rollbar # type: ignore[import] | ||
from celery import Celery | ||
from flask_migrate import Migrate # type: ignore | ||
from flask_socketio import SocketIO # type: ignore | ||
from flask_migrate import Migrate # type: ignore[import] | ||
from flask_socketio import SocketIO # type: ignore[import] | ||
from flask_sqlalchemy import SQLAlchemy | ||
from flask_wtf import CSRFProtect # type: ignore | ||
from flask_wtf import CSRFProtect # type: ignore[import] | ||
|
||
db = SQLAlchemy() | ||
migrate = Migrate() | ||
socketio = SocketIO() | ||
celery = Celery(__name__) | ||
csrf = CSRFProtect() | ||
|
||
__all__ = ["rollbar", "db", "migrate", "socketio", "celery", "csrf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters