trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leif Hedstrom <zw...@apache.org>
Subject Re: Scheduling a recurrent task
Date Mon, 16 Dec 2013 15:47:03 GMT


> On Dec 16, 2013, at 8:33 AM, "Alan D. Cabrera" <list@toolazydogs.com> wrote:
> 
> I'm writing a plugin that performs a recurrent task, i.e. watches a file system for changes.
 What's the best way to do this in a ATS plugin?

Create a continuation and schedule it to run every so often on a TASK thread .

You can alternatively have the continuation scheduled for a single run, and have it reschedule
itself. That's useful if the interval between invocations is not fixed.

-- Leif 
> 
> 
> Regards,
> Alan
> 

Mime
View raw message