cctools
ndcctools.taskvine.task.LibraryTask Class Reference

TaskVine LibraryTask object. More...

Inheritance diagram for ndcctools.taskvine.task.LibraryTask:
ndcctools.taskvine.task.Task

Public Member Functions

def __init__
 Create a new LibraryTask task specification. More...
 
- Public Member Functions inherited from ndcctools.taskvine.task.Task
def __init__
 Create a new task specification. More...
 
def submit_finalize
 Finalizes the task definition once the manager that will execute is run. More...
 
def clone
 Return a copy of this task. More...
 
def set_command
 Set the command to be executed by the task. More...
 
def set_coprocess
 Set the coprocess at the worker that should execute the task's command. More...
 
def set_scheduler
 Set the worker selection scheduler for task. More...
 
def set_tag
 Attach a user defined logical name to the task. More...
 
def set_category
 Label the task with the given category. More...
 
def add_feature
 Label the task with the given user-defined feature. More...
 
def add_input
 Add any input object to a task. More...
 
def add_output
 Add any output object to a task. More...
 
def set_snapshot_file
 When monitoring, indicates a json-encoded file that instructs the monitor to take a snapshot of the task resources. More...
 
def add_environment
 Adds an execution environment to the task. More...
 
def set_retries
 Indicate the number of times the task should be retried. More...
 
def set_cores
 Indicate the number of cores required by this task. More...
 
def set_memory
 Indicate the memory (in MB) required by this task. More...
 
def set_disk
 Indicate the disk space (in MB) required by this task. More...
 
def set_gpus
 Indicate the number of GPUs required by this task. More...
 
def set_priority
 Indicate the the priority of this task (larger means better priority, default is 0). More...
 
def set_env_var
 Set this environment variable before running the task. More...
 
def set_monitor_output
 Set a name for the resource summary output directory from the monitor. More...
 
def tag
 Get the user-defined logical name for the task. More...
 
def category
 Get the category name for the task. More...
 
def command
 Get the shell command executed by the task. More...
 
def std_output
 Get the standard output of the task. More...
 
def output
 Get the standard output of the task. More...
 
def id
 Get the task id number. More...
 
def exit_code
 Get the exit code of the command executed by the task. More...
 
def result
 Return a string that explains the result of a task. More...
 
def completed
 Return True if task executed and its command terminated normally. More...
 
def successful
 Return True if task executed successfully, (i.e. More...
 
def get_metric
 Return various integer performance metrics about a completed task. More...
 
def addrport
 Get the address and port of the host on which the task ran. More...
 
def hostname
 Get the address and port of the host on which the task ran. More...
 
def resources_measured
 Get the resources measured for the task execution if resource monitoring is enabled. More...
 
def limits_exceeded
 Get the resources the task exceeded. More...
 
def resources_requested
 Get the resources the task requested to run. More...
 
def resources_allocated
 Get the resources allocated to the task in its latest attempt. More...
 

Detailed Description

TaskVine LibraryTask object.

This class represents a task specialized to running a coprocess that contains Python functions at the worker

Constructor & Destructor Documentation

def ndcctools.taskvine.task.LibraryTask.__init__ (   self,
  fn,
  name 
)

Create a new LibraryTask task specification.

Parameters
selfReference to the current remote task object.
fnThe command for this LibraryTask to run
nameThe name of this Library.

The documentation for this class was generated from the following file: