- 新しい順
- 投票が多い順
- コメントが多い順
Java doesn't provide a method to terminate a thread that executes an activity. So the actual activity implementation is not stopped on the timeout. It is the responsibility of the implementation to ensure that timeouts are not exceeded.
It is recommended to heartbeat from a long running activity to ensure timely timeout if the worker goes down. It also helps with the activity cleanup as the heartbeat method throws an exception if an activity is already timed out or was canceled. See "Activity Heartbeat" section from the https://docs.aws.amazon.com/amazonswf/latest/awsflowguide/errorhandling.html#test.cancellation.resources .
Hi Maxim, thanks for the response! Looks like we will have to do some implementation to fix this.
I'm curious, by "Java doesn't provide a method to terminate..." did you mean that the underlying issue is within how Java language manages threads, or that the Java version for swf currently does not support terminating threads that executes an activity. Because if it is the latter, we might just have to wait and see if swf will have an update in the future that would support this
関連するコンテンツ
- 質問済み 6年前
- AWS公式更新しました 1年前