I have a job running, and I'm interested in to use only one recover retry, because in the meantime that this flink restart is not triggered I have a Thread that try to solve the problem, then when the problem was solved flink will restart, but sometimes the thread takes longer the usual to fix the issue and restart strategy is triggered, failing because of the issue still, then the job is stopped but the thread maybe has another iteration, and then the application never dies because I'm running it as a jar application. So, my question:
- Is there anyway to know from java code the status of the job? Something like (JobStatus.CANCELED == true).
Thanks in advance! Kind regards
env.registerJobListener();
– Felipe