You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "tartarus (Jira)" <ji...@apache.org> on 2022/07/08 08:28:00 UTC
[jira] [Created] (FLINK-28457) Flink add JobStatusHook support
tartarus created FLINK-28457:
--------------------------------
Summary: Flink add JobStatusHook support
Key: FLINK-28457
URL: https://issues.apache.org/jira/browse/FLINK-28457
Project: Flink
Issue Type: Sub-task
Reporter: tartarus
{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)