Skip to content

Commit

Permalink
adding extraction of workspace url in environment controller
Browse files Browse the repository at this point in the history
  • Loading branch information
shabazpatel committed Jul 24, 2018
1 parent 128d485 commit a7b153e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions datmo/core/controller/environment/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,23 @@ def build(self, environment_id, workspace=None):
shutil.rmtree(_temp_env_dir)
return result

def extract_workspace_url(self, name, workspace=None):
"""Extract workspace url from the environment
Parameters
----------
name : str
name of the environment being run
workspace : str
workspace being used for the run
Returns
-------
str
web url for the workspace being run, None if it doesn't exist
"""
return self.environment_driver.extract_workspace_url(name, workspace)

def run(self, environment_id, options, log_filepath):
"""Run and log an instance of the environment with the options given
Expand Down

0 comments on commit a7b153e

Please sign in to comment.