Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Unified Diff: testing/legion/run_task.py

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/legion/rpc_server.py ('k') | testing/legion/task_controller.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/legion/run_task.py
diff --git a/testing/legion/run_task.py b/testing/legion/run_task.py
deleted file mode 100755
index 26c6e5c877ca9010b5388d1b98ae13e5369fd573..0000000000000000000000000000000000000000
--- a/testing/legion/run_task.py
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""The main task entrypoint."""
-
-import argparse
-import logging
-import socket
-import sys
-import time
-
-#pylint: disable=relative-import
-import common_lib
-import rpc_server
-
-
-def main():
- print ' '.join(sys.argv)
- common_lib.InitLogging()
- logging.info('Task starting')
-
- parser = argparse.ArgumentParser()
- parser.add_argument('--otp',
- help='One time token used to authenticate with the host')
- parser.add_argument('--controller',
- help='The ip address of the controller machine')
- parser.add_argument('--idle-timeout', type=int,
- default=common_lib.DEFAULT_TIMEOUT_SECS,
- help='The idle timeout for the rpc server in seconds')
- args, _ = parser.parse_known_args()
-
- logging.info(
- 'Registering with registration server at %s using OTP "%s"',
- args.controller, args.otp)
- common_lib.ConnectToServer(args.controller).RegisterTask(
- args.otp, common_lib.MY_IP)
-
- server = rpc_server.RPCServer(args.controller, args.idle_timeout)
-
- server.serve_forever()
- logging.info('Server shutdown complete')
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « testing/legion/rpc_server.py ('k') | testing/legion/task_controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698