Skip to content

Commit 5fe98c3

Browse files
committed
Remove Celery
1 parent cf46c6e commit 5fe98c3

9 files changed

Lines changed: 16 additions & 282 deletions

File tree

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,4 @@ To install pre-commit simply run inside the shell:
3131

3232
```bash
3333
pre-commit install
34-
```
35-
36-
37-
### To start the celery server
38-
39-
```bash
40-
celery -A procollab.celery worker --pool=solo -l info
4134
```

core/utils.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from django.core.mail import EmailMessage
2+
3+
4+
class Email:
5+
@staticmethod
6+
def send_email(data):
7+
email = EmailMessage(
8+
subject=data["email_subject"], body=data["email_body"], to=[data["to_email"]]
9+
)
10+
email.send()

poetry.lock

Lines changed: 2 additions & 221 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

procollab/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +0,0 @@
1-
# This will make sure the app is always imported when
2-
# Django starts so that shared_task will use this app.
3-
from .celery import app as celery_app
4-
5-
__all__ = ("celery_app",)

0 commit comments

Comments
 (0)