fix: Restructure activities and operations with generator pattern#128
Open
zawadzkidiana wants to merge 4 commits intocadence-workflow:masterfrom
Open
fix: Restructure activities and operations with generator pattern#128zawadzkidiana wants to merge 4 commits intocadence-workflow:masterfrom
zawadzkidiana wants to merge 4 commits intocadence-workflow:masterfrom
Conversation
Signed-off-by: Diana Zawadzki <dzawa@live.de>
- greetings: Sequential activity execution - timer: Timeout and delayed notifications - branch: Parallel activity execution - choice: Conditional execution based on results - pickfirst: Race condition handling Signed-off-by: Diana Zawadzki <dzawa@live.de>
Ran all 7 samples against Cadence server to verify they work: - greetings, timer, branch, choice, pickfirst, activities, operations Discovered bug: Activities without heartbeating were failing with ActivityTaskTimedOut (HEARTBEAT) because HeartbeatTimeout was set but the activities never called activity.RecordHeartbeat(). Fix: Removed HeartbeatTimeout from simple activities (greetings, branch, choice) that complete quickly and don't need heartbeating. Signed-off-by: Diana Zawadzki <dzawa@live.de>
7c51937 to
d0152f8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
restructured samples code to match new samples guidelines: https://docs.google.com/document/d/1gWWQVKqkQSajgpG1sNlgMqXLVLglkCNP2g2hdyM73eM/edit?tab=t.0