@events.command('<STR_LIT>')<EOL>@click.argument('<STR_LIT>', nargs=-<NUM_LIT:1>, callback=_validate_event_type)<EOL>@click.option('<STR_LIT>', '<STR_LIT>', is_flag=True)<EOL>@with_appcontext<EOL>def _events_process(event_types=None, eager=False):
event_types = event_types or list(current_stats.enabled_events)<EOL>if eager:<EOL><INDENT>process_events.apply((event_types,), throw=True)<EOL>click.secho('<STR_LIT>', fg='<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>process_events.delay(event_types)<EOL>click.secho('<STR_LIT>', fg='<STR_LIT>')<EOL><DEDENT>
Process stats events.