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
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -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)