If you set DeploymentOptions.ATTACHED to false then execute() does not
block until the job finishes, and returns a DetachedJobExecutionResult
from which you can retrieve the Job ID.
If you need to know when the job finishes you will have to continuously
query the REST API.
This is the only way to do so using the StreamExecutionEnvironment that
I'm aware of.
On 25/05/2020 14:34, Annemarie Burger wrote:
Hi,
Thanks for your reply and explanation!
Do you know of any way to have a job retrieve its own jobID while it's still
running?
Best,
Annemarie
--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/