idmtools_platform_comps.ssmt_work_items.work_order module¶
idmtools WorkOrder classes.
Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.
- class idmtools_platform_comps.ssmt_work_items.work_order.IWorkOrder(WorkItem_Type: str)¶
Bases:
abc.ABC
Base workorder type.
- class idmtools_platform_comps.ssmt_work_items.work_order.ExecutionDefinition(Command: str, ImageName: str = 'DockerWorker')¶
Bases:
object
Define the execution definition for workorders.
- class idmtools_platform_comps.ssmt_work_items.work_order.DockerWorkOrder(WorkItem_Type: str = 'DockerWorker', Execution: idmtools_platform_comps.ssmt_work_items.work_order.ExecutionDefinition = <factory>)¶
Bases:
idmtools_platform_comps.ssmt_work_items.work_order.IWorkOrder
Define the docker worker.
- class idmtools_platform_comps.ssmt_work_items.work_order.BuildFlags(section: typing.List[str] = <factory>, library: str = 'https://library.sylabs.io', Switches: typing.List[str] = <factory>)¶
Bases:
object
Define build flags.
- class idmtools_platform_comps.ssmt_work_items.work_order.BuildDefinition(Type: str = 'singularity', Input: typing.Optional[str] = None, Flags: idmtools_platform_comps.ssmt_work_items.work_order.BuildFlags = <factory>)¶
Bases:
object
Define options for build definitions.
- class idmtools_platform_comps.ssmt_work_items.work_order.ImageBuilderWorkOrder(WorkItem_Type: str = 'ImageBuilderWorker', Build: str = BuildDefinition(Type='singularity', Input=None, Flags=BuildFlags(section=['all'], library='https://library.sylabs.io', Switches=[])), Output: str = 'image.sif', Tags: typing.Dict[str, str] = <factory>, AdditionalMounts: typing.List[str] = <factory>, StaticEnvironment: typing.Dict[str, str] = <factory>)¶
Bases:
idmtools_platform_comps.ssmt_work_items.work_order.IWorkOrder
Defines our Image Builder service workorder.
- Build: str = BuildDefinition(Type='singularity', Input=None, Flags=BuildFlags(section=['all'], library='https://library.sylabs.io', Switches=[]))¶
- __init__(WorkItem_Type: str = 'ImageBuilderWorker', Build: str = BuildDefinition(Type='singularity', Input=None, Flags=BuildFlags(section=['all'], library='https://library.sylabs.io', Switches=[])), Output: str = 'image.sif', Tags: typing.Dict[str, str] = <factory>, AdditionalMounts: typing.List[str] = <factory>, StaticEnvironment: typing.Dict[str, str] = <factory>) None ¶