-
Notifications
You must be signed in to change notification settings - Fork 911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose history size to workflows #3055
Changes from all commits
e237199
6d35260
40e1e43
61b74a8
62824cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,14 @@ type ( | |
|
||
// Indicate type of the current workflow task (normal, transient, or speculative). | ||
Type enumsspb.WorkflowTaskType | ||
|
||
// These two fields are sent to workers in the WorkflowTaskStarted event. We need to save a | ||
// copy in mutable state to know the last values we sent (which might have been in a | ||
// transient event), otherwise a dynamic config change of the suggestion threshold could | ||
// cause the WorkflowTaskStarted event that the worker used to not match the event we saved | ||
// in history. | ||
Comment on lines
+93
to
+97
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this comment also needs to be updated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what part is wrong? I just updated this one |
||
SuggestContinueAsNew bool | ||
HistorySizeBytes int64 | ||
} | ||
|
||
MutableState interface { | ||
|
@@ -224,7 +232,7 @@ type ( | |
ReplicateWorkflowTaskCompletedEvent(*historypb.HistoryEvent) error | ||
ReplicateWorkflowTaskFailedEvent() error | ||
ReplicateWorkflowTaskScheduledEvent(int64, int64, *taskqueuepb.TaskQueue, *time.Duration, int32, *time.Time, *time.Time, enumsspb.WorkflowTaskType) (*WorkflowTaskInfo, error) | ||
ReplicateWorkflowTaskStartedEvent(*WorkflowTaskInfo, int64, int64, int64, string, time.Time) (*WorkflowTaskInfo, error) | ||
ReplicateWorkflowTaskStartedEvent(*WorkflowTaskInfo, int64, int64, int64, string, time.Time, bool, int64) (*WorkflowTaskInfo, error) | ||
ReplicateWorkflowTaskTimedOutEvent(enumspb.TimeoutType) error | ||
ReplicateExternalWorkflowExecutionCancelRequested(*historypb.HistoryEvent) error | ||
ReplicateExternalWorkflowExecutionSignaled(*historypb.HistoryEvent) error | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh.. Attributes are already there for half a year.