@run.command()
@click.option('--pidfile', help='Optional file used to store the process pid. The program will not start if this file already exists and the pid is still alive.')
@click.option('--logfile', '-f', help='Path to log file. If no logfile is specified, stderr is used.')
@click.option('--quiet', '-q', is_flag=True, default=False)
@click.option('--no-color', is_flag=True, default=False)
@click.option('--autoreload', is_flag=True, default=False, help='Enable autoreloading.')
@click.option('--without-gossip', is_flag=True, default=False)
@click.option('--without-mingle', is_flag=True, default=False)
@click.option('--without-heartbeat', is_flag=True, default=False)
@log_options()
@configuration
def cron(**options):
 from django.conf import settings
 if settings.CELERY_ALWAYS_EAGER:
  raise click.ClickException('Disable CELERY_ALWAYS_EAGER in your settings file to spawn workers.')
 from sentry.celery import app
 app.Beat(**options).run()

@ run . command ( ) @ click . option ( '--pidfile' , help = 'Optional file used to store the process pid. The program will not start if this file already exists and the pid is still alive.' ) @ click . option ( '--logfile' , '-f' , help = 'Path to log file. If no logfile is specified, stderr is used.' ) @ click . option ( '--quiet' , '-q' , is_flag = True , default = False ) @ click . option ( '--no-color' , is_flag = True , default = False ) @ click . option ( '--autoreload' , is_flag = True , default = False , help = 'Enable autoreloading.' ) @ click . option ( '--without-gossip' , is_flag = True , default = False ) @ click . option ( '--without-mingle' , is_flag = True , default = False ) @ click . option ( '--without-heartbeat' , is_flag = True , default = False ) @ log_options ( ) @ configuration def cron ( ** options ) : from django . conf import settings if settings . CELERY_ALWAYS_EAGER : raise click . ClickException ( 'Disable CELERY_ALWAYS_EAGER in your settings file to spawn workers.' ) from sentry . celery import app app . Beat ( ** options ) . run ( )
run periodic task dispatcher .