Skip to content

Commit 05e3755

Browse files
committed
boop
1 parent a7a5b16 commit 05e3755

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/web/endpoints/task.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def get_status(
2626
try:
2727
if task.status == "FAILURE":
2828
# *FAILURE* The task raised an exception, or has exceeded the retry limit.
29-
# The :attr:`result` attribute then contains the exception raised by the task.
29+
# The :attr:`result` attribute then contains the exception raised by
30+
# the task.
3031
# https://docs.celeryq.dev/en/stable/_modules/celery/result.html#AsyncResult
3132
raise task.result
3233

app/web/middleware.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
async def logging_middleware(request: Request, call_next):
1111
try:
1212
response = await call_next(request)
13-
# TODO: use Origin to have summary prometheus metrics on where requests come from
13+
# TODO: use Origin to have summary prometheus metrics on where
14+
# requests come from
1415
# origin = request.headers.get("origin")
1516
logger.info(
1617
f"{request.client.host}:{request.client.port} {request.method} {request.url._url} - HTTP {response.status_code}"
@@ -25,7 +26,9 @@ async def logging_middleware(request: Request, call_next):
2526
raise e
2627

2728

28-
async def increase_exceptions_counter(e: Exception, location: str = "cronjob"):
29+
async def increase_exceptions_counter(
30+
e: Exception, location: str = "cronjob"
31+
) -> None:
2932
if location == "cronjob":
3033
try:
3134
last_trace = traceback.extract_tb(e.__traceback__)[-1]

0 commit comments

Comments
 (0)