@Override
    public void handleGlobalFailure(
            Throwable cause, CompletableFuture<Map<String, String>> failureLabels) {
        logger.debug(
                "Ignore global failure because we already finished the job {}.",
                archivedExecutionGraph.getJobID(),
                cause);
    }
@Test
    void testGlobalFailureIgnored() {
        MockFinishedContext ctx = new MockFinishedContext();
        createFinishedState(ctx)
                .handleGlobalFailure(
                        new RuntimeException(), FailureEnricherUtils.EMPTY_FAILURE_LABELS);
        assertThat(ctx.getArchivedExecutionGraph().getState()).isEqualTo(testJobStatus);
    }