Commit 9d46540f authored by Stephan Feurer's avatar Stephan Feurer
Browse files

Remove some tasks from project

parent d2fe5711
import os
from celery import Celery
from django.core.mail import send_mail
import subprocess
......@@ -23,19 +21,3 @@ app.autodiscover_tasks(['cynomys.tasks',])
@app.task(bind=True)
def debug_task(self):
print(f'Request: {self.request!r}')
@app.task()
def notify_email(checkTask, receiver):
print("Sending email from task " + checkTask + " to " + receiver)
send_mail(
"Status Change",
"Message which task etc.",
None,
[receiver],
fail_silently=False
)
@app.task()
def notify_webhook():
pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment