Metadata-Version: 1.1
Name: leonardo-celery
Version: 0.1.1
Summary: Background workers for Leonardo CMS
Home-page: https://github.com/leonardo-modules/leonardo-celery.git
Author: Michael Kuty
Author-email: mail@michaelkuty.eu
License: UNKNOWN
Description: ======================
        Leonardo Celery Worker
        ======================
        
        This module provide worker for hard work around periodical syncing and updating caches, sending emails or whatever you need do asynchronously.
        
        .. contents::
            :local:
        
        Installation
        ------------
        
        .. code-block:: bash
        
            pip install leonardo-celery
        
        .. code-block:: bash
        
            pip install django-leonardo[celery]
        
        Settings
        --------
        
        .. code-block:: bash
            
            BROKER_URL = 'redis://localhost:6379/0'
        
            BROKER_URL = 'amqp://user:password@127.0.0.1:5672/leonardo'
        
        Set custom scheduler and result backend
        
        .. code-block:: bash
        
            CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend'
        
            CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler"
        
        Start worker
        ------------
        
        .. code-block:: bash
        
            python manage.py celery worker -B -E
        
        Syncing state
        -------------
        
        For syncing state to databse run ``celerycam``
        
        .. code-block:: bash
        
            python manage.py celerycam
        
        Tasks are discovered by standard mechanism::
        
            app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
        
        Use smart caching
        -----------------
        
        Use ``cacheback`` jobs for fetching data asynchronously.
        
        .. code-block:: bash
        
            pip install leonardo-celery[cacheback]
        
        Define your jobs. More about Jobs http://django-cacheback.readthedocs.org/en/latest/usage.html#as-an-instance-of-cacheback-job
        
        Read More
        ---------
        
        * https://celery.readthedocs.org/en/release21-maint/userguide/monitoring.html#starting-the-monitor
        * http://celery.readthedocs.org/en/latest/index.html
        * https://github.com/django-leonardo/django-leonardo
        * https://github.com/michaelkuty/django-cacheback
        * http://django-cacheback.readthedocs.org/en/latest/usage.html#as-an-instance-of-cacheback-job
        
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
