mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
chore: upgrade black (#19410)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user