Skip to content

Commit

Permalink
- E-mail Tasks Bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Dec 3, 2018
1 parent b534c2d commit 20c1ade
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions geonode/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
logger = get_task_logger(__name__)


@shared_task(bind=True)
@shared_task(bind=True,
name='geonode.tasks.email.send_mail',
queue='email',)
def send_email(self, *args, **kwargs):
"""
Sends an email using django's send_mail functionality.
Expand All @@ -35,7 +37,9 @@ def send_email(self, *args, **kwargs):
send_mail(*args, **kwargs)


@shared_task(bind=True)
@shared_task(bind=True,
name='geonode.tasks.notifications.send_queued_notifications',
queue='email',)
def send_queued_notifications(self, *args):
"""Sends queued notifications.
Expand Down

0 comments on commit 20c1ade

Please sign in to comment.