Pipeline exceeded the defined timeout

Hello,

One of our pipelines ran for Duration: 381 minutes 38 seconds although we have defined job timeout for 1 hour. Because of this we wasted all of shared Runners pipeline minutes.

Please tell me how to avoid this in the future. Thanks!

Duration: 381 minutes 38 seconds
Timeout: 1h (from project)
Runner: shared-runners-manager-5.gitlab.com (#380986)

Pipeline #211145626
Job #827394550