handle task activation signal.