FunctionTask

class of dascore.workflow.task
inherits from: Task, DascoreBaseModel, pydantic.main.BaseModel
source

FunctionTask()-> None

The behaviour a task synthesized from a function has.

Kept apart from make_function_task_class so that the methods are ordinary, testable functions rather than closures built per class, and so that a synthesized class can be recognized by what it derives from.

Methods

Name Description
from_dict Return the task a document describes.
new Create new instance with some attributed updated.
run Call the wrapped function with any inputs and this task’s fields.
to_dict Return a document which describes this task.
update Return a new task with some parameters changed.
from_dict Return the task a document describes.