mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
chore(command): Organize Commands according to SIP-92 (#25850)
This commit is contained in:
@@ -64,7 +64,7 @@ def load_chart_data_into_cache(
|
||||
form_data: dict[str, Any],
|
||||
) -> None:
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from superset.charts.data.commands.get_data_command import ChartDataCommand
|
||||
from superset.commands.chart.data.get_data_command import ChartDataCommand
|
||||
|
||||
user = (
|
||||
security_manager.get_user_by_id(job_metadata.get("user_id"))
|
||||
|
||||
@@ -22,11 +22,11 @@ from celery.exceptions import SoftTimeLimitExceeded
|
||||
|
||||
from superset import app, is_feature_enabled
|
||||
from superset.commands.exceptions import CommandException
|
||||
from superset.commands.report.exceptions import ReportScheduleUnexpectedError
|
||||
from superset.commands.report.execute import AsyncExecuteReportScheduleCommand
|
||||
from superset.commands.report.log_prune import AsyncPruneReportScheduleLogCommand
|
||||
from superset.daos.report import ReportScheduleDAO
|
||||
from superset.extensions import celery_app
|
||||
from superset.reports.commands.exceptions import ReportScheduleUnexpectedError
|
||||
from superset.reports.commands.execute import AsyncExecuteReportScheduleCommand
|
||||
from superset.reports.commands.log_prune import AsyncPruneReportScheduleLogCommand
|
||||
from superset.stats_logger import BaseStatsLogger
|
||||
from superset.tasks.cron_util import cron_schedule_window
|
||||
from superset.utils.celery import session_scope
|
||||
|
||||
Reference in New Issue
Block a user