Is it possible to somehow notify the user from a completing task? I am walking trough a set of .csv files and on completion i would like to notify the user.
// last step
$stepIndex = $step + 1;
if ( $stepIndex == $this->getTotalSteps() )
{
craft()->userSession->getFlash('notice', 'Reroutes imported.');
// craft()->userSession->setNotice(Craft::t('Reroutes imported.'));
// craft()->userSession->getFlashes();
}
return true;
I tried with the UserSessionService
but i guess that won't work because the task is running separately from the session. If so reloading the page would be a good alternative but how can I let the front-end know of the task being completed.