Task assignment cloud server code