[ 
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/7/16 4:52 PM:
-----------------------------------------------------------

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/


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 task state transitions to RUNNING. Therefore, 
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)

Reply via email to