Skip to content
Snippets Groups Projects
Commit 83ab7f1f authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Disabled sending a task ready email if not using a WMS.

parent 50a6a2bd
Branches
Tags
No related merge requests found
......@@ -342,7 +342,8 @@ print(port)
# Save the task
task.save()
# Notify the user that the task called back home
# Notify the user that the task called back home if using a WMS
if task.computing.wms:
if settings.DJANGO_EMAIL_APIKEY:
logger.info('Sending task ready mail notification to "{}"'.format(task.user.email))
mail_subject = 'Your Task "{}" is now starting up'.format(task.container.name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment