Hi all, 2012/3/23 David Baelde <[email protected]>: > On Fri, Mar 23, 2012 at 11:57 AM, udo noll <[email protected]> wrote: >> can i influence *when* request.dynamic triggers the external script? > > There is currently no way to customize this. It is hardcoded in > src/sources/request_source.ml; search for adaptative_delay. There are > two parameters: max (set to 3) and delay (set to 2 seconds) and the > scheme is to not allow more than max calls within delay. This is more > or less what you observed, except that it allows a burst of three > calls in a row for the initial attempts. If you want we can make these > params user-definable.
If he wraps his request.dynamic source into a switch, will he be able to disable polling for a while? Something like: s = switch( [( some_function, request.dynamic(...) ) ] ) It could even be used in conjunction with a custom protocol to pass a timeout parameter: "disable_source:10s" Romain >> maybe it's the best way to externalize all dynamic stuff and onyl use >> request.push to one or more queues. > > That's correct: pushing gives you more flexibility but sometimes means > that you have to do more work (setup your own delays before retrying, > etc.) > >> anyway, thansk for the add_protocol, havn't seen that before... >> with that it's probably possible to add a custom say command, if >> i'm not wrong again. > > You're right, add_protocol is how say: is defined. > > Cheers, > > David > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
