Skip to content

Commit

Permalink
Decision task failure support (cadence-workflow#422)
Browse files Browse the repository at this point in the history
Add API on Cadence frontend to support DecisionTaskFailure.  Added two new 
causes: RESET_STICKY_TASKLIST and WORKFLOW_WORKER_UNHANDLED_FAILURE
to support scenario of shedding load by clearing sticky tasklist and decider
failures during execution respectively.
Only first DecisionTaskFailure is reported in history and all subsequent retries are 
done using state from mutable state.  Mutable state keeps track of decision_attempt
and decision_timestamp and creates transient decisions while dispatching 
these decision tasks.  These transition decisions are stored in the history
and frontend has logic to deliver these events when it is done paginating through
all the events from history.
New schema changes to support transient decisions on mutable state.

Fixes cadence-workflow#117 and cadence-workflow#118 .
  • Loading branch information
samarabbas authored Nov 23, 2017
1 parent 6b3fcff commit 9db7677
Show file tree
Hide file tree
Showing 109 changed files with 2,557 additions and 1,943 deletions.
24 changes: 2 additions & 22 deletions .gen/go/cadence/idl.go

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions .gen/go/cadence/versioncheck.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_deprecatedomain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_describedomain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_describeworkflowexecution.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_getworkflowexecutionhistory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_listclosedworkflowexecutions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_listopenworkflowexecutions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_pollforactivitytask.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_pollfordecisiontask.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_queryworkflow.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_recordactivitytaskheartbeat.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_registerdomain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_requestcancelworkflowexecution.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_respondactivitytaskcanceled.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_respondactivitytaskcompleted.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions .gen/go/cadence/workflowservice_respondactivitytaskfailed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9db7677

Please sign in to comment.