Skip to content

Add activity task failure cause#816

Draft
jmaeagle99 wants to merge 1 commit into
mainfrom
activity-failure-cause
Draft

Add activity task failure cause#816
jmaeagle99 wants to merge 1 commit into
mainfrom
activity-failure-cause

Conversation

@jmaeagle99

Copy link
Copy Markdown
Contributor

What changed?

Add new activity task failure cause to to activity task failed requests and events.

Why?

We have a few well-known failure causes that we can attach for better debugability.

// from the server, and some of them can only originate from the SDK/worker.
enum ActivityTaskFailedCause {
ACTIVITY_TASK_FAILED_CAUSE_UNSPECIFIED = 0;
// An activity task failed because a grpc message was too large.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a grpc message
Is this specifically "the RespondActivityTaskCompleted gRPC message"?

ACTIVITY_TASK_FAILED_CAUSE_UNSPECIFIED = 0;
// An activity task failed because a grpc message was too large.
ACTIVITY_TASK_FAILED_CAUSE_GRPC_MESSAGE_TOO_LARGE = 1;
// An activity task failed because payloads were too large.

@dandavison dandavison Jul 8, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// An activity task failed because payloads were too large.
// An activity task failed because one or more payloads were too large.

maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants