def post_process_forwarder(**options): from sentry import eventstream from sentry.eventstream.base import ForwarderNotRequired try: eventstream.run_post_process_forwarder( consumer_group=options['consumer_group'], commit_log_topic=options['commit_log_topic'], synchronize_commit_group=options['synchronize_commit_group'], commit_batch_size=options['commit_batch_size'], initial_offset_reset=options['initial_offset_reset'], ) except ForwarderNotRequired: sys.stdout.write( 'The configured event stream backend does not need a forwarder ' 'process to enqueue post-process tasks. Exiting...\n') return
def post_process_forwarder(**options): from sentry import eventstream from sentry.eventstream.base import ForwarderNotRequired try: eventstream.run_post_process_forwarder( consumer_group=options['consumer_group'], commit_log_topic=options['commit_log_topic'], synchronize_commit_group=options['synchronize_commit_group'], commit_batch_size=options['commit_batch_size'], initial_offset_reset=options['initial_offset_reset'], ) except ForwarderNotRequired: sys.stdout.write( 'The configured event stream backend does not need a forwarder ' 'process to enqueue post-process tasks. Exiting...\n') return
def post_process_forwarder(**options): from sentry import eventstream from sentry.eventstream.base import ForwarderNotRequired try: eventstream.run_post_process_forwarder( entity=options["entity"], consumer_group=options["consumer_group"], commit_log_topic=options["commit_log_topic"], synchronize_commit_group=options["synchronize_commit_group"], commit_batch_size=options["commit_batch_size"], commit_batch_timeout_ms=options["commit_batch_timeout_ms"], initial_offset_reset=options["initial_offset_reset"], ) except ForwarderNotRequired: sys.stdout.write( "The configured event stream backend does not need a forwarder " "process to enqueue post-process tasks. Exiting...\n") return