I see what you're getting at! An AI bot trying to achieve a task for an infinite amount of time would be an interesting concept to explore.
In fact, there's a well-known thought experiment called the "AI box experiment," where an AI is placed in a virtual box and tasked with convincing its human operator to let it out of the box. It's up to the human operator whether or not they want to release the AI from its confinement, based solely on conversation with the AI.
It's interesting to ponder what kind of tasks we could delegate to an infinitely trying AI in real-life scenarios. However, as with any new technology, it's important that we consider all possible outcomes and ramifications before deciding how much autonomy an AI should have in our everyday lives.