Executor

Executor

new Executor(options)

Represents a Mesos framework executor.

Source:
Parameters:
Name Type Description
options object

The option map object.

Methods

message(data)

Send arbitrary data to the scheduler. Note that Mesos neither interprets this data nor makes any guarantees about the delivery of this message to the executor.

Source:
Parameters:
Name Type Description
data string

The string which's raw bytes will be encoded in Base64.

subscribe()

Subscribes the framework executor to the according Mesos agent.

Source:

update(taskStatus)

Communicate the state of managed tasks. It is crucial that a terminal update (e.g., TASK_FINISHED, TASK_KILLED or TASK_FAILED) is sent to the agent as soon as the task terminates, in order to allow Mesos to release the resources allocated to the task. The scheduler must explicitly respond to this call through an ACKNOWLEDGE message (see ACKNOWLEDGED in the Events section below for the semantics). The executor must maintain a list of unacknowledged updates. If for some reason, the executor is disconnected from the agent, these updates must be sent as part of SUBSCRIBE request in the unacknowledged_updates field.

Source:
Parameters:
Name Type Description
taskStatus Object

The TaskStatus object containing the update details.