Consider moving isJobStuck verification to backend

Instead of frontend checking if the job is stuck

state.job.status.group === 'pending' && state.job.runners && state.job.runners.available === false;

should be moved to the backend.

The following discussion from !22087 (merged) should be addressed: