Class JobFailedEvent
- All Implemented Interfaces:
FailureEvent, LifecycleEvent, TerminalEvent, JobEvent, Serializable
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:
-
Field Summary
Fields inherited from class AbstractTerminalEvent
attempts, llmResponses, metadata, terminatedAt -
Constructor Summary
ConstructorsConstructorDescriptionJobFailedEvent(JobSnapshot snapshot, Throwable error, int attempts, List<LLMResponse<?>> llmResponses, Map<String, Object> metadata) -
Method Summary
Methods inherited from class AbstractTerminalEvent
getAttempts, getCompletionTime, getDuration, getLlmResponses, getMetadata, getResult, getStartTime, getTerminatedAtMethods inherited from class AbstractJobEvent
message, setMessage, snapshot, timestampMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TerminalEvent
getCause, getCompletionTime, getDuration, getErrorMessage, getErrorType, getLlmResponses, getMetadata, getStartTime
-
Constructor Details
-
JobFailedEvent
public JobFailedEvent(JobSnapshot snapshot, Throwable error, int attempts, List<LLMResponse<?>> llmResponses, Map<String, Object> metadata)
-
-
Method Details
-
getError
Description copied from interface:FailureEventGets the error that caused the failure.- Specified by:
getErrorin interfaceFailureEvent- Returns:
- the error, may be null
-