Since you have a timeout of 3 seconds for a task that takes at least 10 seconds to finish, even when the task is scheduled the ray.get call is expected to error out with a ray.exceptions.GetTimeoutError.
You should be able to get this to run successfully by removing the sleep call:
- time.sleep(10)
Alternatively, you can increase or remove the timeout: