-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use flyteremote to access subnodes information of array nodes (#3152)
* fix sync for map task in dynamic Signed-off-by: Troy Chiu <[email protected]> * remove unnecessary Signed-off-by: Troy Chiu <[email protected]> * remove raise error Signed-off-by: Troy Chiu <[email protected]> * add integration tests Signed-off-by: Troy Chiu <[email protected]> * lint Signed-off-by: Troy Chiu <[email protected]> * type hint Signed-off-by: Troy Chiu <[email protected]> * wip Signed-off-by: Troy Chiu <[email protected]> * use flyte node Signed-off-by: Troy Chiu <[email protected]> * lint Signed-off-by: Troy Chiu <[email protected]> * wip Signed-off-by: Troy Chiu <[email protected]> * wip Signed-off-by: Troy Chiu <[email protected]> * use interface to list Signed-off-by: Troy Chiu <[email protected]> * add tests Signed-off-by: Troy Chiu <[email protected]> * lint Signed-off-by: Troy Chiu <[email protected]> * nit Signed-off-by: Troy Chiu <[email protected]> * expose external resources Signed-off-by: Troy Chiu <[email protected]> * lint Signed-off-by: Troy Chiu <[email protected]> * add tests Signed-off-by: Troy Chiu <[email protected]> --------- Signed-off-by: Troy Chiu <[email protected]>
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from flyteidl.event import event_pb2 as _event_pb2 | ||
|
||
from flytekit.models import common as _common | ||
|
||
|
||
class TaskExecutionMetadata(_common.FlyteIdlEntity): | ||
""" | ||
:param google.protobuf.internal.containers.RepeatedCompositeFieldContainer external_resources: | ||
""" | ||
|
||
def __init__(self, external_resources=None): | ||
self._external_resources = external_resources | ||
|
||
@property | ||
def external_resources(self): | ||
""" | ||
:rtype: google.protobuf.internal.containers.RepeatedCompositeFieldContainer | ||
""" | ||
return self._external_resources | ||
|
||
def to_flyte_idl(self): | ||
""" | ||
:rtype: flyteidl.event.TaskExecutionMetadata | ||
""" | ||
return _event_pb2.TaskExecutionMetadata( | ||
external_resources=self._external_resources, | ||
) | ||
|
||
@classmethod | ||
def from_flyte_idl(cls, proto): | ||
""" | ||
:param flyteidl.event.event_pb2.TaskExecutionMetadata proto: | ||
:rtype: TaskExecutionMetadata | ||
""" | ||
return cls( | ||
external_resources=proto.external_resources, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters