Hi everyone,

I'd like to do an API review for MESOS-8725
<https://issues.apache.org/jira/browse/MESOS-8725>. We are adding an
optional `max_duration` to `TaskInfo` field. If a task does not terminate
within this duration, built-in executors will kill the task with a new
reason `REASON_MAX_DURATION_REACHED`.

Proof of concept patch:
https://reviews.apache.org/r/66258/

Reference implementation in command executor:
https://reviews.apache.org/r/66259/

A design choice we made is to make this relative duration rather than an
absolute timestamp of deadline. Our rationales:

   - Cluster could suffer from clock skews, so same absolute deadline would
   result in inconsistent behavior;
   - Framework can just trivially translate its own clock as source of
   truth to translate absolute deadline to current time + max_duration.

Please let me know what you think. Thanks.

-- 
Cheers,

Zhitao Li

Reply via email to