cctools
|
TaskVine LibraryTask object. More...
Public Member Functions | |
def | __init__ |
Create a new LibraryTask task specification. More... | |
![]() | |
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... | |
TaskVine LibraryTask object.
This class represents a task specialized to running a coprocess that contains Python functions at the worker
def ndcctools.taskvine.task.LibraryTask.__init__ | ( | self, | |
fn, | |||
name | |||
) |
Create a new LibraryTask task specification.
self | Reference to the current remote task object. |
fn | The command for this LibraryTask to run |
name | The name of this Library. |