Skip to content

mecfs_bio.build_system.task.base_task

Instructions for materializing an asset.

Classes:

Attributes:

Task module-attribute

Task = GeneratingTask

GeneratingTask

Bases: ABC

Instructions for materializing an asset.

Methods:

  • execute

    Materialize the target asset, using the 'fetch' callback to access asset dependencies.

Attributes:

asset_id property

asset_id: AssetId

deps abstractmethod property

deps: list[Task]

List of tasks whose assets are needed to produce the target asset.

meta abstractmethod property

meta: Meta

Metadata describing the target asset.

execute abstractmethod

execute(scratch_dir: Path, fetch: Fetch, wf: WF) -> Asset

Materialize the target asset, using the 'fetch' callback to access asset dependencies.

Source code in mecfs_bio/build_system/task/base_task.py
@abstractmethod
def execute(
    self,
    scratch_dir: Path,
    fetch: Fetch,
    wf: WF,
) -> Asset:
    """
    Materialize the target asset, using the 'fetch' callback to access asset dependencies.
    """
    pass