chore: upgrade black (#19410)

This commit is contained in:
Ville Brofeldt
2022-03-29 20:03:09 +03:00
committed by GitHub
parent 816a2c3e1e
commit a619cb4ea9
204 changed files with 2125 additions and 608 deletions

View File

@@ -61,7 +61,13 @@ def scheduler() -> None:
active_schedule.working_timeout
+ app.config["ALERT_REPORTS_WORKING_SOFT_TIME_OUT_LAG"]
)
execute.apply_async((active_schedule.id, schedule,), **async_options)
execute.apply_async(
(
active_schedule.id,
schedule,
),
**async_options
)
@celery_app.task(name="reports.execute")
@@ -70,7 +76,9 @@ def execute(report_schedule_id: int, scheduled_dttm: str) -> None:
task_id = execute.request.id
scheduled_dttm_ = parser.parse(scheduled_dttm)
AsyncExecuteReportScheduleCommand(
task_id, report_schedule_id, scheduled_dttm_,
task_id,
report_schedule_id,
scheduled_dttm_,
).run()
except ReportScheduleUnexpectedError as ex:
logger.error(