Documentation
¶
Index ¶
Constants ¶
const (
ReminderPrefixActivityResult = "activity-result-"
)
Variables ¶
This section is empty.
Functions ¶
func CreateReminderWithRetry ¶ added in v1.17.7
func CreateReminderWithRetry(ctx context.Context, r reminderCreator, req *actorapi.CreateReminderRequest) error
CreateReminderWithRetry calls reminders.Create with bounded exponential backoff. Only transient gRPC errors are retried (e.g. scheduler pod failover surfacing as Unavailable); permanent errors such as etcd "database space exceeded" (ResourceExhausted) or invalid arguments are returned to the caller immediately. Without that distinction a permanent failure would burn the entire retry budget before surfacing the original error, masking the real cause and tripping caller deadlines.
func ParsableTraceContext ¶ added in v1.17.21
func ParsableTraceContext(tc *protos.TraceContext) *protos.TraceContext
ParsableTraceContext returns tc, or nil if the workflow engine cannot parse it. The engine's parser indexes the decoded trace flags of a four part traceparent without checking that there are any, and it runs outside the engine's panic recovery, so a traceparent ending in "-" stops the process each time the event carrying it is loaded.
Types ¶
type ActorTypeBuilder ¶
type ActorTypeBuilder struct {
// contains filtered or unexported fields
}
func NewActorTypeBuilder ¶
func NewActorTypeBuilder(namespace string) *ActorTypeBuilder
func (*ActorTypeBuilder) Activity ¶
func (a *ActorTypeBuilder) Activity(appID string) string
func (*ActorTypeBuilder) Workflow ¶
func (a *ActorTypeBuilder) Workflow(appID string) string