Move run_server into tasks