Prevent erroneous task state log lines involving migration