def __init__(self, app=None, default_timeout=None, is_async=None,
                 **kwargs):
        """
        Initialize the RQ interface.

        :param app: Flask application
        :type app: :class:`flask.Flask`
        :param default_timeout: The default timeout in seconds to use for jobs,
                                defaults to RQ's default of 180 seconds per job
        :type default_timeout: int
        :param is_async: Whether or not to run jobs asynchronously or
                         in-process, defaults to ``True``
        :type is_async: bool
        """
        if default_timeout is not None:
            self.default_timeout = default_timeout
        self._is_async = is_async
        if 'async' in kwargs:
            self._is_async = kwargs['async']
            warnings.warn('The `async` keyword is deprecated. '
                          'Use `is_async` instead', DeprecationWarning)

        self._jobs = []
        self._exception_handlers = []
        self._queue_instances = {}
        self._functions_cls = import_attribute(self.functions_class)
        self._ready_to_connect = False
        self._connection = None

        if app is not None:
            self.init_app(app)
def __init__ ( self , app = None , default_timeout = None , is_async = None , ** kwargs ) : if default_timeout is not None : self . default_timeout = default_timeout self . _is_async = is_async if 'async' in kwargs : self . _is_async = kwargs [ 'async' ] warnings . warn ( 'The `async` keyword is deprecated. ' 'Use `is_async` instead' , DeprecationWarning ) self . _jobs = [ ] self . _exception_handlers = [ ] self . _queue_instances = { } self . _functions_cls = import_attribute ( self . functions_class ) self . _ready_to_connect = False self . _connection = None if app is not None : self . init_app ( app )
Initialize the RQ interface.

        :param app: Flask application
        :type app: :class:`flask.Flask`
        :param default_timeout: The default timeout in seconds to use for jobs,
                                defaults to RQ's default of 180 seconds per job
        :type default_timeout: int
        :param is_async: Whether or not to run jobs asynchronously or
                         in-process, defaults to ``True``
        :type is_async: bool