Shutdown activity worker and workflow

2019-08-02 21:11发布

Is there any way to shutdown activity and workflow worker after all the activities in my workflow implementation have completed its execution or if any of them throws any exception.

标签: amazon-swf
1条回答
\"骚年 ilove
2楼-- · 2019-08-02 21:11

You can have special "shutdown worker" activity type. This activity implementation initiates shutdown of its worker. At the end of the workflow execution you always invoke this activity from doFinally method of TryCatchFinally that wraps all other workflow logic.

查看更多
登录 后发表回答