That was Sisyphus , a figure from Greek mythology. He was punished to endlessly push a boulder up a hill, only for it to roll back down each time.

In modern usage, “Sisyphean ” describes a task that feels endless, repetitive, or impossible to finish.