Пример #1
0
 def to_flyte_idl(self):
     """
     :rtype: flyteidl.admin.execution_pb2.ExecutionSpec
     """
     return _execution_pb2.ExecutionSpec(
         launch_plan=self.launch_plan.to_flyte_idl(),
         metadata=self.metadata.to_flyte_idl(),
         notifications=self.notifications.to_flyte_idl() if self.notifications else None,
         disable_all=self.disable_all,
         labels=self.labels.to_flyte_idl(),
         annotations=self.annotations.to_flyte_idl(),
     )
Пример #2
0
 def to_flyte_idl(self):
     """
     :rtype: flyteidl.admin.execution_pb2.ExecutionSpec
     """
     return _execution_pb2.ExecutionSpec(
         launch_plan=self.launch_plan.to_flyte_idl(),
         metadata=self.metadata.to_flyte_idl(),
         notifications=self.notifications.to_flyte_idl() if self.notifications else None,
         disable_all=self.disable_all,
         labels=self.labels.to_flyte_idl(),
         annotations=self.annotations.to_flyte_idl(),
         auth_role=self._auth_role.to_flyte_idl() if self.auth_role else None,
         raw_output_data_config=self._raw_output_data_config.to_flyte_idl()
         if self._raw_output_data_config
         else None,
         max_parallelism=self.max_parallelism,
         security_context=self.security_context.to_flyte_idl() if self.security_context else None,
     )