[ https://issues.apache.org/jira/browse/FLINK-13482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16897093#comment-16897093 ]
Robert Metzger commented on FLINK-13482: ---------------------------------------- I'm not aware of a mechanism for that yet. There are some plans for providing an API for controlling a running Flink job. This API would probably work independent of the deployment mode. If you are using a custom source, you could implement a mechanism that shuts the sources down. Once the {{SourceFunction.run()}} method completes, Flink will shut down the topology. > How can I cleanly shutdown streaming jobs in local mode? > -------------------------------------------------------- > > Key: FLINK-13482 > URL: https://issues.apache.org/jira/browse/FLINK-13482 > Project: Flink > Issue Type: Improvement > Components: Runtime / Coordination > Reporter: Donghui Xu > Priority: Minor > > Currently, streaming jobs can be stopped using "cancel" and "stop" command > only in cluster mode, not in local mode. > When users need to explicitly terminate jobs, it is necessary to provide a > termination mechanism for local mode flow jobs. -- This message was sent by Atlassian JIRA (v7.6.14#76016)