Update main_server.py

Main Worker for processing tasks.