[
https://issues.apache.org/jira/browse/FLINK-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14969411#comment-14969411
]
ASF GitHub Bot commented on FLINK-2797:
---------------------------------------
Github user mxm commented on a diff in the pull request:
https://github.com/apache/flink/pull/1214#discussion_r42772489
--- Diff:
flink-clients/src/main/java/org/apache/flink/client/program/Client.java ---
@@ -277,12 +278,20 @@ else if (prog.isUsingInteractiveMode()) {
// invoke here
try {
prog.invokeInteractiveModeForExecution();
+ // if we're here, it means the program is valid
for detached mode execution.
+ JobWithJars plan =
ContextEnvironment.ContextEnvironmentFactory.getPlan();
+ JobGraph graph =
ContextEnvironment.ContextEnvironmentFactory.getGraph();
+ if (plan != null && graph == null) {
--- End diff --
What would happen if we created a streaming program and a batch program in
one jar? Then both would be set and only the batch program would be created...
> CLI: Missing option to submit jobs in detached mode
> ---------------------------------------------------
>
> Key: FLINK-2797
> URL: https://issues.apache.org/jira/browse/FLINK-2797
> Project: Flink
> Issue Type: Bug
> Components: Command-line client
> Affects Versions: 0.9, 0.10
> Reporter: Maximilian Michels
> Assignee: Sachin Goel
> Fix For: 0.10
>
>
> Jobs can only be submitted in detached mode using YARN but not on a
> standalone installation. This has been requested by users who want to submit
> a job, get the job id, and later query its status.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)