You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yun Gao (Jira)" <ji...@apache.org> on 2022/07/14 04:10:00 UTC
[jira] [Closed] (FLINK-28457) Flink add JobStatusHook support
[ https://issues.apache.org/jira/browse/FLINK-28457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yun Gao closed FLINK-28457.
---------------------------
Fix Version/s: 1.16.0
Resolution: Fixed
> Flink add JobStatusHook support
> -------------------------------
>
> Key: FLINK-28457
> URL: https://issues.apache.org/jira/browse/FLINK-28457
> Project: Flink
> Issue Type: Sub-task
> Reporter: tartarus
> Assignee: tartarus
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.16.0
>
>
> {code:java}
> /**
> * Hooks provided by users on job status changing.
> */
> @Internal
> public interface JobStatusHook extends Serializable {
> /** When Job become CREATED status. It would only be called one time. */
> void onCreated(JobID jobId);
>
> /** When job finished successfully. */
> void onFinished(JobID jobId);
> /** When job failed finally. */
> void onFailed(JobID jobId, Throwable throwable);
> /** When job get canceled by users. */
> void onCanceled(JobID jobId);
> } {code}
> Introduce JM-side execution state change hook
--
This message was sent by Atlassian Jira
(v8.20.10#820010)