How to use the kombu.utils.objects.cached_property function in kombu

To help you get started, we’ve selected a few kombu examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github celery / kombu / kombu / transport / SQS.py View on Github external
    @cached_property
    def port(self):
        return self.transport_options.get('port')
github celery / kombu / kombu / connection.py View on Github external
    @cached_property
    def channel_errors(self):
        """List of exceptions that may be raised by the channel."""
        return self.transport.channel_errors
github celery / celery / celery / beat.py View on Github external
    @cached_property
    def producer(self):
        return self.Producer(self._ensure_connected(), auto_declare=False)
github sibson / redbeat / redbeat / schedulers.py View on Github external
    @cached_property
    def _maybe_due_kwargs(self):
        """ handle rename of publisher to producer """
        if CELERY_4_OR_GREATER:
            return {'producer': self.producer}  # celery 4.x
        else:
            return {'publisher': self.publisher}  # celery 3.x
github celery / celery / celery / utils / sysinfo.py View on Github external
    @cached_property
    def stat(self):
        return os.statvfs(os.path.abspath(self.path))
github sibson / redbeat / redbeat / schedulers.py View on Github external
    @cached_property
    def _maybe_due_kwargs(self):
        """ handle rename of publisher to producer """
        return {'producer': self.producer}
github celery / celery / celery / app / amqp.py View on Github external
    @cached_property
    def utc(self):
        return self.app.conf.enable_utc
github celery / celery / celery / app / base.py View on Github external
    @cached_property
    def Beat(self, **kwargs):
        """:program:`celery beat` scheduler application.

        See Also:
            :class:`~@Beat`.
        """
        return self.subclass_with_self('celery.apps.beat:Beat')
github celery / celery / celery / app / base.py View on Github external
    @cached_property
    def _canvas(self):
        from celery import canvas
        return canvas
github celery / kombu / kombu / transport / filesystem.py View on Github external
    @cached_property
    def data_folder_in(self):
        return self.transport_options.get('data_folder_in', 'data_in')