[Streaming] Fault Tolerance Implementation (#10595)

This commit is contained in:
Lixin Wei
2020-09-05 16:40:47 +08:00
committed by GitHub
parent 31f8ce4768
commit f31ee84bfd
161 changed files with 7071 additions and 1239 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