Scheduled job stuck at running

Hello i have a server in production and sometimes my scheduled jobs get stuck in “Running” any idea how to solve this problem, or what might be the problem?

Sometimes you can get that behavior when you restart the server and the job is running at the time of restart. In that case the job is no longer running but the status will remain as running. You could use some logging in your job to know if it is still running or not.

Is it posible the server restart for itself? Because we are using a dedicated server its not the idea that our jobs get stucked.

not sure what you mean by this
server restarts for example when you try to update it

Thats the question, we are not doing any restart ir update and it still show us this problem.

Can you add some logging to that job so that you know if it is really running?