Package io.temporal.api.enums.v1
Enum ActivityExecutionStatus
- java.lang.Object
-
- java.lang.Enum<ActivityExecutionStatus>
-
- io.temporal.api.enums.v1.ActivityExecutionStatus
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<ActivityExecutionStatus>
@Generated(value="protoc", comments="annotations:ActivityExecutionStatus.java.pb.meta") public enum ActivityExecutionStatus extends java.lang.Enum<ActivityExecutionStatus> implements com.google.protobuf.ProtocolMessageEnumStatus of a standalone activity. The status is updated once, when the activity is originally scheduled, and again when the activity reaches a terminal status. (-- api-linter: core::0216::synonyms=disabled aip.dev/not-precedent: Named consistently with WorkflowExecutionStatus. --)Protobuf enumtemporal.api.enums.v1.ActivityExecutionStatus
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVITY_EXECUTION_STATUS_CANCELEDThe activity was canceled.ACTIVITY_EXECUTION_STATUS_COMPLETEDThe activity completed successfully.ACTIVITY_EXECUTION_STATUS_FAILEDThe activity failed.ACTIVITY_EXECUTION_STATUS_RUNNINGThe activity has not reached a terminal status.ACTIVITY_EXECUTION_STATUS_TERMINATEDThe activity was terminated.ACTIVITY_EXECUTION_STATUS_TIMED_OUTThe activity timed out.ACTIVITY_EXECUTION_STATUS_UNSPECIFIEDACTIVITY_EXECUTION_STATUS_UNSPECIFIED = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intACTIVITY_EXECUTION_STATUS_CANCELED_VALUEThe activity was canceled.static intACTIVITY_EXECUTION_STATUS_COMPLETED_VALUEThe activity completed successfully.static intACTIVITY_EXECUTION_STATUS_FAILED_VALUEThe activity failed.static intACTIVITY_EXECUTION_STATUS_RUNNING_VALUEThe activity has not reached a terminal status.static intACTIVITY_EXECUTION_STATUS_TERMINATED_VALUEThe activity was terminated.static intACTIVITY_EXECUTION_STATUS_TIMED_OUT_VALUEThe activity timed out.static intACTIVITY_EXECUTION_STATUS_UNSPECIFIED_VALUEACTIVITY_EXECUTION_STATUS_UNSPECIFIED = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ActivityExecutionStatusforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ActivityExecutionStatus>internalGetValueMap()static ActivityExecutionStatusvalueOf(int value)Deprecated.static ActivityExecutionStatusvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ActivityExecutionStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ActivityExecutionStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVITY_EXECUTION_STATUS_UNSPECIFIED
public static final ActivityExecutionStatus ACTIVITY_EXECUTION_STATUS_UNSPECIFIED
ACTIVITY_EXECUTION_STATUS_UNSPECIFIED = 0;
-
ACTIVITY_EXECUTION_STATUS_RUNNING
public static final ActivityExecutionStatus ACTIVITY_EXECUTION_STATUS_RUNNING
The activity has not reached a terminal status. See PendingActivityState for the run state (SCHEDULED, STARTED, or CANCEL_REQUESTED).
ACTIVITY_EXECUTION_STATUS_RUNNING = 1;
-
ACTIVITY_EXECUTION_STATUS_COMPLETED
public static final ActivityExecutionStatus ACTIVITY_EXECUTION_STATUS_COMPLETED
The activity completed successfully. An activity can complete even after cancellation is requested if the worker calls RespondActivityTaskCompleted before acknowledging cancellation.
ACTIVITY_EXECUTION_STATUS_COMPLETED = 2;
-
ACTIVITY_EXECUTION_STATUS_FAILED
public static final ActivityExecutionStatus ACTIVITY_EXECUTION_STATUS_FAILED
The activity failed. Causes: - Worker returned a non-retryable failure - RetryPolicy.maximum_attempts exhausted - Attempt failed after cancellation was requested (retries blocked)
ACTIVITY_EXECUTION_STATUS_FAILED = 3;
-
ACTIVITY_EXECUTION_STATUS_CANCELED
public static final ActivityExecutionStatus ACTIVITY_EXECUTION_STATUS_CANCELED
The activity was canceled. Reached when: - Cancellation requested while SCHEDULED (immediate), or - Cancellation requested while STARTED and worker called RespondActivityTaskCanceled. Workers discover cancellation requests via heartbeat responses (cancel_requested=true). Activities that do not heartbeat will not learn of cancellation and may complete, fail, or time out normally. CANCELED requires explicit worker acknowledgment or immediate cancellation of a SCHEDULED activity.
ACTIVITY_EXECUTION_STATUS_CANCELED = 4;
-
ACTIVITY_EXECUTION_STATUS_TERMINATED
public static final ActivityExecutionStatus ACTIVITY_EXECUTION_STATUS_TERMINATED
The activity was terminated. Immediate; does not wait for worker acknowledgment.
ACTIVITY_EXECUTION_STATUS_TERMINATED = 5;
-
ACTIVITY_EXECUTION_STATUS_TIMED_OUT
public static final ActivityExecutionStatus ACTIVITY_EXECUTION_STATUS_TIMED_OUT
The activity timed out. See TimeoutType for the specific timeout. - SCHEDULE_TO_START and SCHEDULE_TO_CLOSE timeouts always result in TIMED_OUT. - START_TO_CLOSE and HEARTBEAT may retry if RetryPolicy permits; TIMED_OUT is reached when retry is blocked (RetryPolicy.maximum_attempts exhausted, SCHEDULE_TO_CLOSE would be exceeded, or cancellation has been requested).
ACTIVITY_EXECUTION_STATUS_TIMED_OUT = 6;
-
UNRECOGNIZED
public static final ActivityExecutionStatus UNRECOGNIZED
-
-
Field Detail
-
ACTIVITY_EXECUTION_STATUS_UNSPECIFIED_VALUE
public static final int ACTIVITY_EXECUTION_STATUS_UNSPECIFIED_VALUE
ACTIVITY_EXECUTION_STATUS_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
ACTIVITY_EXECUTION_STATUS_RUNNING_VALUE
public static final int ACTIVITY_EXECUTION_STATUS_RUNNING_VALUE
The activity has not reached a terminal status. See PendingActivityState for the run state (SCHEDULED, STARTED, or CANCEL_REQUESTED).
ACTIVITY_EXECUTION_STATUS_RUNNING = 1;- See Also:
- Constant Field Values
-
ACTIVITY_EXECUTION_STATUS_COMPLETED_VALUE
public static final int ACTIVITY_EXECUTION_STATUS_COMPLETED_VALUE
The activity completed successfully. An activity can complete even after cancellation is requested if the worker calls RespondActivityTaskCompleted before acknowledging cancellation.
ACTIVITY_EXECUTION_STATUS_COMPLETED = 2;- See Also:
- Constant Field Values
-
ACTIVITY_EXECUTION_STATUS_FAILED_VALUE
public static final int ACTIVITY_EXECUTION_STATUS_FAILED_VALUE
The activity failed. Causes: - Worker returned a non-retryable failure - RetryPolicy.maximum_attempts exhausted - Attempt failed after cancellation was requested (retries blocked)
ACTIVITY_EXECUTION_STATUS_FAILED = 3;- See Also:
- Constant Field Values
-
ACTIVITY_EXECUTION_STATUS_CANCELED_VALUE
public static final int ACTIVITY_EXECUTION_STATUS_CANCELED_VALUE
The activity was canceled. Reached when: - Cancellation requested while SCHEDULED (immediate), or - Cancellation requested while STARTED and worker called RespondActivityTaskCanceled. Workers discover cancellation requests via heartbeat responses (cancel_requested=true). Activities that do not heartbeat will not learn of cancellation and may complete, fail, or time out normally. CANCELED requires explicit worker acknowledgment or immediate cancellation of a SCHEDULED activity.
ACTIVITY_EXECUTION_STATUS_CANCELED = 4;- See Also:
- Constant Field Values
-
ACTIVITY_EXECUTION_STATUS_TERMINATED_VALUE
public static final int ACTIVITY_EXECUTION_STATUS_TERMINATED_VALUE
The activity was terminated. Immediate; does not wait for worker acknowledgment.
ACTIVITY_EXECUTION_STATUS_TERMINATED = 5;- See Also:
- Constant Field Values
-
ACTIVITY_EXECUTION_STATUS_TIMED_OUT_VALUE
public static final int ACTIVITY_EXECUTION_STATUS_TIMED_OUT_VALUE
The activity timed out. See TimeoutType for the specific timeout. - SCHEDULE_TO_START and SCHEDULE_TO_CLOSE timeouts always result in TIMED_OUT. - START_TO_CLOSE and HEARTBEAT may retry if RetryPolicy permits; TIMED_OUT is reached when retry is blocked (RetryPolicy.maximum_attempts exhausted, SCHEDULE_TO_CLOSE would be exceeded, or cancellation has been requested).
ACTIVITY_EXECUTION_STATUS_TIMED_OUT = 6;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ActivityExecutionStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ActivityExecutionStatus c : ActivityExecutionStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActivityExecutionStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ActivityExecutionStatus valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static ActivityExecutionStatus forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ActivityExecutionStatus> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ActivityExecutionStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-