'Handle snapshotted event.'

def handle_task(self, uuid_task, worker=None):

    (uuid, task) = uuid_task
    if (task.worker and task.worker.hostname):
        worker = self.handle_worker((task.worker.hostname, task.worker))
    defaults = {u'name': task.name, u'args': task.args, u'kwargs': task.kwargs, u'eta': correct_awareness(maybe_iso8601(task.eta)), u'expires': correct_awareness(maybe_iso8601(task.expires)), u'state': task.state, u'tstamp': fromtimestamp(task.timestamp), u'result': (task.result or task.exception), u'traceback': task.traceback, u'runtime': task.runtime, u'worker': worker}
    [defaults.pop(attr, None) for attr in NOT_SAVED_ATTRIBUTES if (defaults[attr] is None)]
    return self.update_task(task.state, task_id=uuid, defaults=defaults)
