From b8fca97891e5c63809f419b1f7ce17e05572ea59 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 5 Feb 2023 17:31:43 +0100 Subject: [PATCH] Default poll_interval for `RunnablePlugin` set to 30 seconds --- platypush/plugins/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/__init__.py b/platypush/plugins/__init__.py index 569e51886..bdd88475e 100644 --- a/platypush/plugins/__init__.py +++ b/platypush/plugins/__init__.py @@ -80,13 +80,13 @@ class RunnablePlugin(Plugin): def __init__( self, - poll_interval: Optional[float] = None, + poll_interval: Optional[float] = 30, stop_timeout: Optional[float] = PLUGIN_STOP_TIMEOUT, **kwargs, ): """ :param poll_interval: How often the :meth:`.loop` function should be - execute (default: None, no pause/interval). + execute (default: 30 seconds). :param stop_timeout: How long we should wait for any running threads/processes to stop before exiting (default: 5 seconds). """