Hi Sujin, A framework can be either a long running service or just runs during the duration of the tasks. A custom executor can also run longer than the tasks themselves as well. Tasks have several states, and few them (TASK_KILLED, TASK_FAILED, TASK_FINISHED, TASK_ERROR) are states that makes them considered completed.
Executor by itself requires resources to run just like any other task, as it may require resources to fork and run arbitrary commands. Tim On Fri, Jan 9, 2015 at 7:17 AM, sujinzhao <[email protected]> wrote: > According to my understanding, one framework may contains several > executors, and one executor may include many tasks, one framework is > considered completed iff all of its executors are completed, and one > executor is considered completed iff all of its tasks are completed, one > task is considered completed iff its state equals "TASK_FINISHED", please > fix if I am right. > > another question: I know that one task may occupy resources, how about an > executor? while I am reading the code, it seems that an executor also needs > resources? what's the reason? > > Thank you very much! if you could provide me with some documents that > would be much helpful!

