public class PythonTask extends AbstractTaskExecutor
FINALIZE_SESSION_MARKER, logger, rgexappIds, cancel, exitStatusCode, needAlert, processId, resultString, taskAlertInfo, varPool| Constructor and Description |
|---|
PythonTask(TaskRequest taskRequest)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildPythonCommandFilePath()
build python command file path
|
void |
cancelApplication(boolean cancelApplication) |
protected void |
createPythonCommandFileIfNotExists(String pythonScript,
String pythonScriptFile)
create python command file if not exists
|
AbstractParameters |
getParameters() |
String |
getPreScript() |
void |
handle() |
void |
init() |
logHandle, setSqlParamsMapgetAppIds, getExitStatus, getExitStatusCode, getNeedAlert, getProcessId, getResultString, getTaskAlertInfo, getVarPool, setAppIds, setExitStatusCode, setNeedAlert, setProcessId, setResultString, setTaskAlertInfo, setVarPoolpublic PythonTask(TaskRequest taskRequest)
taskRequest - taskRequestpublic void init()
init in class AbstractTaskpublic String getPreScript()
getPreScript in class AbstractTaskpublic void handle()
throws Exception
handle in class AbstractTaskExceptionpublic void cancelApplication(boolean cancelApplication)
throws Exception
cancelApplication in class AbstractTaskExceptionpublic AbstractParameters getParameters()
getParameters in class AbstractTaskprotected void createPythonCommandFileIfNotExists(String pythonScript, String pythonScriptFile) throws IOException
pythonScript - exec python scriptpythonScriptFile - python script fileIOException - io exceptionprotected String buildPythonCommandFilePath()
Copyright © 2022 The Apache Software Foundation. All rights reserved.