@Internal public final class ProcessPythonEnvironmentManager extends Object implements PythonEnvironmentManager
Modifier and Type | Field and Description |
---|---|
static String |
PYTHON_REQUIREMENTS_CACHE |
static String |
PYTHON_REQUIREMENTS_FILE |
static String |
PYTHON_REQUIREMENTS_INSTALL_DIR |
static String |
PYTHON_WORKING_DIR |
Constructor and Description |
---|
ProcessPythonEnvironmentManager(PythonDependencyInfo dependencyInfo,
String[] tmpDirectories,
Map<String,String> systemEnv,
JobID jobID) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
PythonEnvironment |
createEnvironment()
Creates the PythonEnvironment object used in
PythonFunctionRunner . |
String |
createRetrievalToken()
Returns an empty RetrievalToken because no files will be transmit via ArtifactService in
process mode.
|
String |
getBootLog()
Returns the boot log of the Python Environment.
|
void |
open()
Initialize the environment manager.
|
void |
setEnvironmentVariable(String key,
String value) |
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_FILE
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_CACHE
@VisibleForTesting public static final String PYTHON_REQUIREMENTS_INSTALL_DIR
@VisibleForTesting public static final String PYTHON_WORKING_DIR
public void open() throws Exception
PythonEnvironmentManager
open
in interface PythonEnvironmentManager
Exception
public void close() throws Exception
close
in interface AutoCloseable
Exception
public PythonEnvironment createEnvironment() throws Exception
PythonEnvironmentManager
PythonFunctionRunner
.createEnvironment
in interface PythonEnvironmentManager
Exception
public String createRetrievalToken() throws IOException
createRetrievalToken
in interface PythonEnvironmentManager
IOException
public String getBootLog() throws Exception
PythonEnvironmentManager
getBootLog
in interface PythonEnvironmentManager
Exception
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.