def beat(setup=True): ''' Runs the Celery Beat service ''' from scrapi import registry from scrapi.tasks import app # Set up the provider map for elasticsearch if setup: provider_map(delete=True) app.conf['CELERYBEAT_SCHEDULE'] = registry.beat_schedule app.Beat().run()
def beat(): from scrapi.tasks import app app.conf['CELERYBEAT_SCHEDULE'] = registry.beat_schedule app.Beat().run()