Skip to content

Commit

Permalink
[Ready for Review] Update deployer API to support more orchestrators (N…
Browse files Browse the repository at this point in the history
…etflix#2010)

* Update deployer API to support more orchestrators

* Rebase and update docstring

* Address comments

---------

Co-authored-by: Romain Cledat <[email protected]>
talsperre and romain-intel authored Sep 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 461fae4 commit 588b217
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metaflow/runner/deployer.py
Original file line number Diff line number Diff line change
@@ -25,6 +25,8 @@ def handle_timeout(
Temporary file that stores runner attribute data.
command_obj : CommandManager
Command manager object that encapsulates the running command details.
file_read_timeout : int
Timeout for reading the file.
Returns
-------
@@ -397,6 +399,9 @@ def create(self, **kwargs) -> DeployedFlow:
self.name = content.get("name")
self.flow_name = content.get("flow_name")
self.metadata = content.get("metadata")
# Additional info is used to pass additional deployer specific information.
# It is used in non-OSS deployers (extensions).
self.additional_info = content.get("additional_info", {})

if command_obj.process.returncode == 0:
deployed_flow = DeployedFlow(deployer=self)

0 comments on commit 588b217

Please sign in to comment.