Unreal Engine Shader Compiler not working or taking too long

You need to setup your swarm agent to run shader compiling to a higher cpu priority.

or you can go into task manager find shadercompiler.exe in details tab and set its priority to normal, as for some reason it starts with priority below normal. Doing this will decrease compile time, however setting it higher can cause older less powerful cpus to run at 100% usage making it lag on other programs so use your best judgment depending on the speed of your cpu etc.