Skip to content

Commit

Permalink
chore: fix black after plate team changes
Browse files Browse the repository at this point in the history
  • Loading branch information
farioas committed Jun 24, 2024
1 parent a389091 commit a1a0db0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion server/tasks/process_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@

REDIS_URL = os.getenv("REDIS_URL", "redis://localhost:6379/0")
app = Celery(
"worker", broker=REDIS_URL, backend=REDIS_URL, accept_content=["json", "pickle"], broker_connection_retry_on_startup=True
"worker",
broker=REDIS_URL,
backend=REDIS_URL,
accept_content=["json", "pickle"],
broker_connection_retry_on_startup=True,
)

settings = Settings()
Expand Down
8 changes: 6 additions & 2 deletions server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def ensure_topic(topic_name: str):
retention_ms = settings.kafka_retention_ms

admin_client = KafkaAdminClient(
bootstrap_servers=bootstrap_servers, client_id="topic_creator", api_version=(2, 5, 0)
bootstrap_servers=bootstrap_servers,
client_id="topic_creator",
api_version=(2, 5, 0),
)

topic = NewTopic(
Expand All @@ -63,7 +65,9 @@ def delete_topic(topic_name: str):
bootstrap_servers = settings.kafka_bootstrap_servers

admin_client = KafkaAdminClient(
bootstrap_servers=bootstrap_servers, client_id="topic_deleter", api_version=(2, 5, 0)
bootstrap_servers=bootstrap_servers,
client_id="topic_deleter",
api_version=(2, 5, 0),
)

admin_client.delete_topics(topics=[topic_name])

0 comments on commit a1a0db0

Please sign in to comment.