Previously, retry() was never called, so the task was never retried despite defining several retry-related variables.