コード例 #1
0
 def get_task_executions(self):
     """
     :rtype: list[flytekit.common.tasks.executions.SdkTaskExecution]
     """
     client = _FlyteClientManager(
         _platform_config.URL.get(),
         insecure=_platform_config.INSECURE.get()).client
     return list(
         _iterate_task_executions(client, self.sdk_node_execution.id))
コード例 #2
0
 def sync(self):
     """
     Syncs the state of this object with that held by the platform.
     :rtype: None
     """
     if not self.is_complete or self.task_executions is not None:
         client = _flyte_engine.get_client()
         self._closure = client.get_node_execution(self.id).closure
         task_executions = list(_iterate_task_executions(client, self.id))
         self._task_executions = [_task_executions.SdkTaskExecution.promote_from_model(te) for te in task_executions]
コード例 #3
0
ファイル: nodes.py プロジェクト: samhita-alla/flytekit
 def sync(self):
     """
     Syncs the state of the underlying execution artifact with the state observed by the platform.
     """
     if not self.is_complete or self.task_executions is not None:
         client = _flyte_engine.get_client()
         self._closure = client.get_node_execution(self.id).closure
         self._task_executions = [
             _task_executions.FlyteTaskExecution.promote_from_model(t)
             for t in _iterate_task_executions(client, self.id)
         ]