Foundry publish job in code repository

I am facing this issue while running the job foundry-publish.
Sometimes , it fails or gets killed with a message high cpu usage.
In the image below it is stuck.
What could be cause and solution for this?
I am not equipped with java.

Can you post the full stack trace. I don’t see any task in your screenshot that is hanging