Replace black/isort with ruff (#188)

* Replace black/isort with ruff

* fix typo
This commit is contained in:
Stan Triepels
2024-05-11 03:04:32 +02:00
committed by GitHub
parent 1d1d0a9aa5
commit ad4d24e17c
35 changed files with 150 additions and 234 deletions
+4 -4
View File
@@ -4,8 +4,8 @@ from multiprocessing.queues import Queue
from time import sleep
from django import core
from django.utils.translation import gettext_lazy as _
from django.apps.registry import apps
from django.utils.translation import gettext_lazy as _
try:
apps.check_apps_ready()
@@ -58,9 +58,9 @@ def pusher(task_queue: Queue, event: Event, broker: Broker = None):
logger.exception("Failed to push task to queue")
broker.fail(ack_id)
continue
task[
"cluster"
] = Conf.CLUSTER_NAME # save actual cluster name to orm task table
task["cluster"] = (
Conf.CLUSTER_NAME
) # save actual cluster name to orm task table
task["ack_id"] = ack_id
task_queue.put(task)
logger.debug(