<reponame>in03/Resolve-Bridge<filename>resolvebridge/celery_worker/celery_settings.py<gh_stars>0
""" Celery settings.
Submodules have their own adjacent settings files.
"""
# Always need an outer dict
defaults = dict(

    # Specific configuration for Celery
    # Don't add unsupported settings here
    celery_worker = dict(

        # Structure: <protocol>://<user>:<password>@<IP address>:<port>/<virtual host>
        # By default the virtual host is a trailing slash! Don't forget it.
        broker_url = 'amqp://guest:guest@192.168.10:5672/',

        # List of modules to import when the Celery worker starts.
        imports = (
            'proxy_encoder.tasks',
        ),

        result_backend = 'rpc://',

        # Additional settings
        worker_prefetch_multiplier = 1,
        celery_acks_late = True,

        enable_utc = True,
        timezone ='Australia/Brisbane',
        result_expires = 18000, # 5 hours
        worker_pool_restarts = True,

    ),

    celery_general = dict(
        track_started = True,
        log_level = "WARN", # Standard logging levels supported
    )
)

""" Celery settings.
Submodules have their own adjacent settings files.
"""
# Always need an outer dict
defaults = dict(

    # Specific configuration for Celery
    # Don't add unsupported settings here
    celery_worker = dict(

        # Structure: <protocol>://<user>:<password>@<IP address>:<port>/<virtual host>
        # By default the virtual host is a trailing slash! Don't forget it.
        broker_url = 'amqp://guest:guest@192.168.10:5672/',

        # List of modules to import when the Celery worker starts.
        imports = (
            'proxy_encoder.tasks',
        ),

        result_backend = 'rpc://',

        # Additional settings
        worker_prefetch_multiplier = 1,
        celery_acks_late = True,

        enable_utc = True,
        timezone ='Australia/Brisbane',
        result_expires = 18000, # 5 hours
        worker_pool_restarts = True,

    ),

    celery_general = dict(
        track_started = True,
        log_level = "WARN", # Standard logging levels supported
    )
)
Celery settings. Submodules have their own adjacent settings files. # Always need an outer dict # Specific configuration for Celery # Don't add unsupported settings here # Structure: <protocol>://<user>:<password>@<IP address>:<port>/<virtual host> # By default the virtual host is a trailing slash! Don't forget it. # List of modules to import when the Celery worker starts. # Additional settings # 5 hours # Standard logging levels supported