hypernets.hyperctl package¶
Submodules¶
hypernets.hyperctl.api module¶
hypernets.hyperctl.appliation module¶
-
class
hypernets.hyperctl.appliation.
BatchApplication
(batch: hypernets.hyperctl.batch.Batch, server_host='localhost', server_port=8060, scheduler_exit_on_finish=True, scheduler_interval=5000, scheduler_callbacks=None, scheduler_signal_file=None, independent_tmp=True, backend_conf=None, **kwargs)[source]¶ Bases:
object
-
server_host
¶
-
server_port
¶
-
hypernets.hyperctl.batch module¶
hypernets.hyperctl.callbacks module¶
hypernets.hyperctl.cli module¶
-
hypernets.hyperctl.cli.
main
()[source]¶ Examples
cd hypernets/tests/hyperctl/ hyperctl run –config ./local_batch.json hyperctl batch list hyperctl job list –batch-name=local-batch-example hyperctl job describe –job-name=job1 –batch-name=local-batch-example hyperctl job kill –job-name=job1 –batch-name=local-batch-example hyperctl job kill –job-name=job2 –batch-name=local-batch-example hyperctl batch list
Returns:
hypernets.hyperctl.consts module¶
hypernets.hyperctl.executor module¶
-
class
hypernets.hyperctl.executor.
LocalExecutorManager
(api_server_portal, environments=None)[source]¶
-
class
hypernets.hyperctl.executor.
RemoteSSHExecutorManager
(api_server_portal, machines: List[hypernets.hyperctl.executor.SSHRemoteMachine])[source]¶
-
class
hypernets.hyperctl.executor.
RemoteShellExecutor
(job: hypernets.hyperctl.batch._ShellJob, api_server_portal, machine: hypernets.hyperctl.executor.SSHRemoteMachine)[source]¶ Bases:
hypernets.hyperctl.executor.ShellExecutor
-
connections
¶
-
-
class
hypernets.hyperctl.executor.
SSHRemoteMachine
(connection, environments=None)[source]¶ Bases:
object
-
hostname
¶
-
usage
¶
-
hypernets.hyperctl.scheduler module¶
-
class
hypernets.hyperctl.scheduler.
JobScheduler
(*, batch, exit_on_finish, interval, executor_manager: hypernets.hyperctl.executor.ExecutorManager, callbacks=None, signal_file=None, independent_tmp=True)[source]¶ Bases:
object
a FIFO scheduler
-
static
change_job_status
(batch: hypernets.hyperctl.batch.Batch, job: hypernets.hyperctl.batch._ShellJob, next_status)[source]¶
-
interval
¶
-
n_allocated
¶
-
n_skipped
¶
-
static
hypernets.hyperctl.server module¶
-
class
hypernets.hyperctl.server.
BaseHandler
(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]¶ Bases:
tornado.web.RequestHandler
-
class
hypernets.hyperctl.server.
HyperctlWebApplication
(host='localhost', port=8060, **kwargs)[source]¶ Bases:
tornado.web.Application
-
portal
¶
-
-
class
hypernets.hyperctl.server.
IndexHandler
(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]¶
-
class
hypernets.hyperctl.server.
JobHandler
(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]¶
-
class
hypernets.hyperctl.server.
JobListHandler
(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]¶
-
class
hypernets.hyperctl.server.
JobOperationHandler
(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]¶ Bases:
hypernets.hyperctl.server.BaseHandler
-
OPT_KILL
= 'kill'¶
-