Ticket #5609: fix_celery_connections.diff

File fix_celery_connections.diff, 897 bytes (added by Fernando Gutierrez, 4 years ago)

Proposed fix

  • docs/source/siteadmin/deploying.rst

    diff --git a/docs/source/siteadmin/deploying.rst b/docs/source/siteadmin/deploying.rst
    index b7e7a73..70515c6 100644
    a b environment's setup:  
    540540    # Set the WorkingDirectory and Environment values to match your environment.
    541541    [Unit]
    542542    Description=MediaGoblin Celeryd
     543    After=rabbitmq-server.service
    543544
    544545    [Service]
    545546    User=mediagoblin
  • mediagoblin/init/celery/__init__.py

    diff --git a/mediagoblin/init/celery/__init__.py b/mediagoblin/init/celery/__init__.py
    index 9a67942..9fb783b 100644
    a b def get_celery_settings_dict(app_config, global_config,  
    8181                'schedule': datetime.timedelta(minutes=frequency),
    8282            }
    8383        }
    84         celery_settings['BROKER_HEARTBEAT'] = 1
    8584
    8685    return celery_settings
    8786