[Streaming] Fault Tolerance Implementation (#10008)

This commit is contained in:
Lixin Wei
2020-09-04 20:44:34 +08:00
committed by GitHub
parent 5f5160ead9
commit 1b1466748f
158 changed files with 7042 additions and 1229 deletions
+30
View File
@@ -0,0 +1,30 @@
class BaseWorkerCmd:
"""
base worker cmd
"""
def __init__(self, actor_id):
self.from_actor_id = actor_id
class WorkerCommitReport(BaseWorkerCmd):
"""
worker commit report
"""
def __init__(self, actor_id, commit_checkpoint_id):
super().__init__(actor_id)
self.commit_checkpoint_id = commit_checkpoint_id
class WorkerRollbackRequest(BaseWorkerCmd):
"""
worker rollback request
"""
def __init__(self, actor_id, exception_msg):
super().__init__(actor_id)
self.__exception_msg = exception_msg
def exception_msg(self):
return self.__exception_msg