Files
fn-serverless/api
Tolga Ceylan c848fc6181 fn: hot container timer improvements (#751)
* fn: hot container timer improvements

With this change, now we are allocating the timers
when the container starts and managing them via
stop/clear as needed, which should not only be more
efficient, but also easier to follow.

For example, previously, if eject time out was
set to 10 secs, this could have delayed idle timeout
up to 10 secs as well. It is also not necessary to do
any math for elapsed time.

Now consumers avoid any requeuing when startDequeuer() is cancelled.
This was triggering additional dequeue/requeue causing
containers to wake up spuriously. Also in startDequeuer(),
we no longer remove the item from the actual queue and
leave this to acquire/eject, which side steps issues related
with item landing in the channel, not consumed, etc.
2018-02-12 14:12:03 -08:00
..
2018-01-31 17:25:24 -08:00
2018-02-05 11:54:09 -08:00
2018-02-05 11:54:09 -08:00
2017-12-12 15:54:55 -08:00
2018-02-12 10:34:35 -08:00
2017-06-06 14:12:50 -07:00