You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Zhitao Li <zh...@gmail.com> on 2016/05/18 00:20:03 UTC
Distinguish statusUpdate callback between actual status change and reconcile
Hi,
Is it possible to distinguish whether a statusUpdate() callback was
triggered by an actual status change, or triggered by a reconciliation on
the scheduler side?
I'm asking to see how I can easily log an event based on such callback w/o
going deep into the scheduler code for previous set task statuses.
Thanks.
--
Cheers,
Zhitao Li
Re: Distinguish statusUpdate callback between actual status change
and reconcile
Posted by Zhitao Li <zh...@gmail.com>.
Thanks! That's exactly what I need.
On Tue, May 17, 2016 at 5:29 PM, Vinod Kone <vi...@apache.org> wrote:
> The updates from reconciliation will have the reason field set to
> "REASON_RECONCILIATION"
>
> On Tue, May 17, 2016 at 5:20 PM, Zhitao Li <zh...@gmail.com> wrote:
>
> > Hi,
> >
> > Is it possible to distinguish whether a statusUpdate() callback was
> > triggered by an actual status change, or triggered by a reconciliation on
> > the scheduler side?
> >
> > I'm asking to see how I can easily log an event based on such callback
> w/o
> > going deep into the scheduler code for previous set task statuses.
> >
> > Thanks.
> >
> > --
> > Cheers,
> >
> > Zhitao Li
> >
>
--
Cheers,
Zhitao Li
Re: Distinguish statusUpdate callback between actual status change
and reconcile
Posted by Vinod Kone <vi...@apache.org>.
The updates from reconciliation will have the reason field set to
"REASON_RECONCILIATION"
On Tue, May 17, 2016 at 5:20 PM, Zhitao Li <zh...@gmail.com> wrote:
> Hi,
>
> Is it possible to distinguish whether a statusUpdate() callback was
> triggered by an actual status change, or triggered by a reconciliation on
> the scheduler side?
>
> I'm asking to see how I can easily log an event based on such callback w/o
> going deep into the scheduler code for previous set task statuses.
>
> Thanks.
>
> --
> Cheers,
>
> Zhitao Li
>