hpcflow.sdk.core.execute.Executor#

class hpcflow.sdk.core.execute.Executor(cmd, env, package_name)#

Bases: AppAware

Methods

run

Launch the subprocess to execute the commands, and once complete, stop the ZMQ server.

send_abort

Send an abort message to a running server.

start_zmq_server

stop_zmq_server

Attributes

q

zmq_context

property q#
run()#

Launch the subprocess to execute the commands, and once complete, stop the ZMQ server. Kill the subprocess if a “shutdown” or “abort” message is sent to the server.

classmethod send_abort(hostname, port_number)#

Send an abort message to a running server.

start_zmq_server()#
Return type:

int

stop_zmq_server()#
property zmq_context#