Use Task::isRunning()

Authored by aspotashev on Dec 12 2019, 9:32 PM.