mesos / mesos-go

Go language bindings for Apache Mesos
Apache License 2.0
544 stars 146 forks source link

controller: WithContextPerSubscription() #361

Closed jdef closed 5 years ago

jdef commented 5 years ago

Prior to this changeset, it is difficult for event handlers to know when the current subscription has terminated. This is important, especially, for offer processing since all outstanding offers on a terminated subscription are immediately invalidated by Mesos. This changeset allows a scheduler to bound the cancelation context to the lifetime of the current subscription.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.4%) to 57.865% when pulling f77c4e0592c0d113eeef6d51a5d76eb02766b384 on jdef:sched_control_ctx_per_subscription into ff8175bfda54b1eb1f1954c8102a9dc612aa2312 on mesos:master.