pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.set_runtime_mode#
- StreamExecutionEnvironment.set_runtime_mode(execution_mode: pyflink.datastream.execution_mode.RuntimeExecutionMode)[source]#
Sets the runtime execution mode for the application
RuntimeExecutionMode
. This is equivalent to setting the execution.runtime-mode in your application’s configuration file.We recommend users to NOT use this method but set the execution.runtime-mode using the command-line when submitting the application. Keeping the application code configuration-free allows for more flexibility as the same application will be able to be executed in any execution mode.
- Parameters
execution_mode – The desired execution mode.
- Returns
The execution environment of your application.
New in version 1.13.0.