How to use the scs.utils.cached_property function in scs

To help you get started, we’ve selected a few scs 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 / cyme / scs / controller.py View on Github external
    @cached_property
    def name(self):
        return unicode(self.model._meta.verbose_name.capitalize())
github celery / cyme / scs / controller.py View on Github external
    @cached_property
    def name_plural(self):
        return unicode(self.model._meta.verbose_name_plural).capitalize()
github celery / cyme / scs / metrics.py View on Github external
    @cached_property
    def stat(self):
        return os.statvfs(self.path)
github celery / cyme / scs / controller.py View on Github external
        @cached_property
        def scs(self):
            from .agent import cluster
            return cluster
github celery / cyme / scs / state.py View on Github external
    @cached_property
    def supervisor(self):
        from .supervisor import supervisor
        return supervisor