Search in sources :

Example 1 with EmailNotificationContext

use of ubic.gemma.core.job.EmailNotificationContext in project Gemma by PavlidisLab.

the class SubmittedTaskLocal method addEmailAlert.

@SuppressWarnings("unchecked")
@Override
public synchronized void addEmailAlert() {
    if (emailAlert)
        return;
    emailAlert = true;
    assert taskPostProcessing != null : "Task postprocessing was null";
    taskPostProcessing.addEmailNotification((ListenableFuture<TaskResult>) future, new EmailNotificationContext(taskCommand.getTaskId(), taskCommand.getSubmitter(), taskCommand.getTaskClass().getSimpleName()));
}
Also used : EmailNotificationContext(ubic.gemma.core.job.EmailNotificationContext) TaskResult(ubic.gemma.core.job.TaskResult)

Aggregations

EmailNotificationContext (ubic.gemma.core.job.EmailNotificationContext)1 TaskResult (ubic.gemma.core.job.TaskResult)1