Follow your company security guidelines! :D
Sometimes you need to have a process running on the background but your laptop policies (automatic lock) are the problem. So you need to have a backup plan for this cases, here's where this solution gets interesting.
Moves your mouse certain pixels randomly during an especific period of time and certain interval so the computer detects interaction and the lock screen is never reached!