[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesos-user
Subject:    Re: Does MesosScheduler.resourceOffers need to be reentrant?
From:       Itamar Ostricher <itamar () yowza3d ! com>
Date:       2015-02-26 10:14:47
Message-ID: CAMD8Vh0eQq7G3rLR9Xa+QZxfnA8-tBE+9t8pbV4L4YFJcPXf5A () mail ! gmail ! com
[Download RAW message or body]

Great!
Thanks for the quick answers, Dario & Tom :-)

On Thu, Feb 26, 2015 at 11:59 AM, Tom Arnfeld <tom@duedil.com> wrote:

> As far as I know the entire scheduler (the API at least) is single
> threaded so only one callback will fire at a given time.
>
> --
>
> Tom Arnfeld
> Developer // DueDil
>
> (+44) 7525940046
> 25 Christopher Street, London, EC2A 2BS
>
>
> On Thu, Feb 26, 2015 at 9:45 AM, Dario Rexin <dario@mesosphere.io> wrote:
>
>> No, resourceOffers will only be called once at a time.
>>
>> Cheers,
>> Dario
>>
>> > On 26 Feb 2015, at 10:09, Itamar Ostricher <itamar@yowza3d.com> wrote:
>> >
>> > Making sure the question is clear:
>> > I'm implementing a framework scheduler,
>> > and I want to know if the resourceOffers method can be invoked while a
>> previous invocation hasn't returned yet (on another thread).
>> >
>> > Thanks,
>> > - Itamar.
>>
>>
>

[Attachment #3 (text/html)]

<div dir="ltr">Great!<div>Thanks for the quick answers, Dario &amp; Tom \
:-)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 26, \
2015 at 11:59 AM, Tom Arnfeld <span dir="ltr">&lt;<a href="mailto:tom@duedil.com" \
target="_blank">tom@duedil.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div>As far as I know the entire scheduler (the API at \
least) is single threaded so only one callback will fire at a given time.</div> <div>
<br><span style="color:rgb(51,51,51);font-family:&#39;Helvetica \
Neue&#39;,Helvetica,Arial,&#39;Lucida \
Grande&#39;,sans-serif;line-height:20px">--</span><div \
style="color:rgb(51,51,51);font-family:&#39;Helvetica \
Neue&#39;,Helvetica,Arial,&#39;Lucida \
Grande&#39;,sans-serif;line-height:20px"><br></div> <div \
style="color:rgb(51,51,51);font-family:&#39;Helvetica \
Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;line-height:20px">Tom \
Arnfeld</div> <div style="color:rgb(51,51,51);font-family:&#39;Helvetica \
Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;line-height:20px"><span \
style="line-height:1.5em">Developer // DueDil</span></div> <div \
style="color:rgb(51,51,51);font-family:&#39;Helvetica \
Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;line-height:20px"> \
<div><span style="line-height:1.5em"><br></span></div> <div><span \
style="line-height:1.5em"><a href="tel:%28%2B44%29%207525940046" \
value="+447525940046" target="_blank">(+44) 7525940046</a></span></div> <div><span \
style="line-height:1.5em">25 Christopher Street, London, EC2A 2BS</span></div> </div>
</div><div class="HOEnZb"><div class="h5">
<br><br><div class="gmail_quote"><p>On Thu, Feb 26, 2015 at 9:45 AM, Dario Rexin \
<span dir="ltr">&lt;<a href="mailto:dario@mesosphere.io" \
target="_blank">dario@mesosphere.io</a>&gt;</span> wrote:<br></p><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><p>No, resourceOffers will only be called once at a time. \
<br><br>Cheers, <br>Dario
<br><br>&gt; On 26 Feb 2015, at 10:09, Itamar Ostricher &lt;<a \
href="mailto:itamar@yowza3d.com" target="_blank">itamar@yowza3d.com</a>&gt; wrote: \
<br>&gt;  <br>&gt; Making sure the question is clear:
<br>&gt; I&#39;m implementing a framework scheduler,
<br>&gt; and I want to know if the resourceOffers method can be invoked while a \
previous invocation hasn&#39;t returned yet (on another thread). <br>&gt; 
<br>&gt; Thanks,
<br>&gt; - Itamar.
<br><br></p></blockquote></div><br></div></div></blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic