Class JobFailedEvent

All Implemented Interfaces:
FailureEvent, LifecycleEvent, TerminalEvent, JobEvent, Serializable

public final class JobFailedEvent extends AbstractTerminalEvent<Void> implements FailureEvent
Event published when a job fails with an exception (not timeout, not cancellation). Carries the error, read through getError() and the terminal TerminalEvent.getCause(); its message is Job failed: <error message>, or Job failed: unknown error without one.

This is the technical failure event, published for ALL job failures regardless of whether the job is a root or sub-job, for the observers that persist or log failure details.

Distinct from WorkflowCompleteEvent which is a user-facing terminal signal published only for root jobs.

Since:
0.1 (2026-03-14)
Author:
Andrey Santrosyan
See Also: