Skip to content

Commit

Permalink
feat: abstract out producer creation (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Graber authored Aug 25, 2023
1 parent 313a90d commit c5cfc5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ edx-arch-experiments
|pypi-badge| |ci-badge| |codecov-badge| |pyversions-badge|
|license-badge|

A plugin to include applications under development by the architecture team at 2U.
A plugin to include applications under development by and useful utility scripts for the architecture team at 2U.

Overview
------------------------

This plugin is meant to house experimental and in-development applications from the edX architecture team at 2U that are either not appropriate (i.e. 2U-specific) or not yet ready for community consumption.

It also includes some one-off scripts meant to reduce toil for the team.

Development Workflow
--------------------
Expand Down
4 changes: 2 additions & 2 deletions edx_arch_experiments/scripts/republish_failed_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
from ast import literal_eval

import click
from edx_event_bus_kafka.internal.producer import create_producer
from openedx_events.event_bus import get_producer
from openedx_events.tooling import EventsMetadata, OpenEdxPublicSignal, load_all_signals


@click.command()
@click.option('--filename', type=click.Path(exists=True))
def read_and_send_events(filename):
load_all_signals()
producer = create_producer()
producer = get_producer()
try:
log_columns = ['initial_topic', 'event_type', 'event_data_as_json', 'event_key_field', 'event_metadata_as_json']
with open(filename) as log_file:
Expand Down

0 comments on commit c5cfc5e

Please sign in to comment.