[
https://issues.apache.org/jira/browse/AURORA-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15471115#comment-15471115
]
Kai Huang edited comment on AURORA-1225 at 9/8/16 7:52 PM:
-----------------------------------------------------------
Currently, aurora_executor passes a callback to status manager. When a
StatusResult is returned, the callback function shuts down the status manager.
We need to modify the callback function, so that it won't shutdown the status
manager if the status in StatusResult is TASK_RUNNING.
was (Author: kaih):
Currently, aurora_executor sends the task status update to scheduler, whereas
the health checker performs the health check. When a successful required number
of health checks is reached, the health checker needs to notify the
aurora_executor about the state change.
To solve this problem, we can implement a event-listener in aurora executor
that listens to a "TASK_RUNNING_TRANSITION" event dispatched by health checker.
Here is an example for the implementation of event dispatcher and event
listener: http://code.activestate.com/recipes/577432-simple-event-dispatcher/
> Modify executor state transition logic to rely on health checks (if enabled)
> ----------------------------------------------------------------------------
>
> Key: AURORA-1225
> URL: https://issues.apache.org/jira/browse/AURORA-1225
> Project: Aurora
> Issue Type: Task
> Components: Executor
> Reporter: Maxim Khutornenko
> Assignee: Kai Huang
>
> Executor needs to start executing user content in STARTING and transition to
> RUNNING when a successful required number of health checks is reached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)