提交 5245529a 编写于 作者: S Sanjeev Kulkarni 提交者: Sijie Guo

Effectively once not yet supported in Python (#278)

上级 433eb8bf
......@@ -215,7 +215,7 @@ public class CmdFunctions extends CmdBase {
functionConfigBuilder.setRuntime(FunctionConfig.Runtime.JAVA);
userCodeFile = jarFile;
} else if (null != pyFile) {
// Can we do any checks here?
doPythonSubmitChecks(functionConfigBuilder);
functionConfigBuilder.setRuntime(FunctionConfig.Runtime.PYTHON);
userCodeFile = pyFile;
} else {
......@@ -365,6 +365,12 @@ public class CmdFunctions extends CmdBase {
}
}
private void doPythonSubmitChecks(FunctionConfig.Builder functionConfigBuilder) {
if (functionConfigBuilder.getProcessingGuarantees() == FunctionConfig.ProcessingGuarantees.EFFECTIVELY_ONCE) {
throw new RuntimeException("Effectively once not yet supported in python");
}
}
private void inferMissingArguments(FunctionConfig.Builder builder) {
if (builder.getName() == null || builder.getName().isEmpty()) {
inferMissingFunctionName(builder);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册