mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
code review feedback and merge from main
This commit is contained in:
@@ -54,9 +54,8 @@ def cleanup_unfinished_jobs():
|
||||
try:
|
||||
acceptable_finish_time = job.processing_started + timedelta(minutes=5)
|
||||
except TypeError:
|
||||
current_app.logger.error(
|
||||
current_app.logger.exception(
|
||||
f"Job ID {job.id} processing_started is {job.processing_started}.",
|
||||
exc_info=True,
|
||||
)
|
||||
raise
|
||||
if now > acceptable_finish_time:
|
||||
@@ -194,9 +193,7 @@ def delete_inbound_sms():
|
||||
)
|
||||
)
|
||||
except SQLAlchemyError:
|
||||
current_app.logger.exception(
|
||||
"Failed to delete inbound sms notifications", exc_info=True
|
||||
)
|
||||
current_app.logger.exception("Failed to delete inbound sms notifications")
|
||||
raise
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user