idmtools_platform_comps.ssmt_operations.workflow_item_operations module

idmtools workflow item operations for ssmt.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

class idmtools_platform_comps.ssmt_operations.workflow_item_operations.SSMTPlatformWorkflowItemOperations(platform: COMPSPlatform, platform_type: typing.Type = <class 'COMPS.Data.WorkItem.WorkItem'>)

Bases: idmtools_platform_comps.comps_operations.workflow_item_operations.CompsPlatformWorkflowItemOperations

SSMTPlatformWorkflowItemOperations provides IWorkflowItem actions for SSMT Platform.

In IWorkflowItem’s case, we just need to change how get_assets works.

get(workflow_item_id: uuid.UUID, columns: Optional[List[str]] = None, load_children: Optional[List[str]] = None, query_criteria: Optional[COMPS.Data.QueryCriteria.QueryCriteria] = None, **kwargs) COMPS.Data.WorkItem.WorkItem

Get COMPSWorkItem.

Parameters:
  • workflow_item_id – Item id

  • columns – Optional columns to load. Defaults to “id”, “name”, “state”, “environment_name”, “working_directory”

  • load_children – Optional list of COMPS Children objects to load. Defaults to “Tags”

  • query_criteria – Optional QueryCriteria

  • **kwargs

Returns:

COMPSWorkItem

get_assets(workflow_item: idmtools.entities.iworkflow_item.IWorkflowItem, files: List[str], **kwargs) Dict[str, bytearray]

Get Assets for workflow_item.

Parameters:
  • workflow_item – WorkflowItem

  • files – Files to get

  • **kwargs

Returns:

Files requested

__init__(platform: COMPSPlatform, platform_type: typing.Type = <class 'COMPS.Data.WorkItem.WorkItem'>) None
platform: COMPSPlatform