DEPL-5367 changed state checks for new TaskExecutionState