Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kalyan540 committed Dec 23, 2024
1 parent 3eb88f9 commit 4447fee
Showing 2 changed files with 36 additions and 7 deletions.
35 changes: 32 additions & 3 deletions docker/pythonpath_dev/superset_config.py
Original file line number Diff line number Diff line change
@@ -81,8 +81,13 @@ class CeleryConfig:
"superset.tasks.cache",
)
result_backend = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_RESULTS_DB}"
worker_prefetch_multiplier = 1
task_acks_late = False
worker_prefetch_multiplier = 10
task_acks_late = True
task_annotations = {
"sql_lab.get_sql_results": {
"rate_limit": "100/s",
},
}
beat_schedule = {
"reports.scheduler": {
"task": "reports.scheduler",
@@ -100,7 +105,31 @@ class CeleryConfig:
FEATURE_FLAGS = {"ALERT_REPORTS": True,
"ALLOW_ADHOC_SUBQUERY": True,
}
ALERT_REPORTS_NOTIFICATION_DRY_RUN = True
ALERT_REPORTS_NOTIFICATION_DRY_RUN = False

# Email configuration
SMTP_HOST = "smtp.gmail.com" # change to your host
SMTP_PORT = 465 # your port, e.g. 587
SMTP_STARTTLS = False
SMTP_SSL_SERVER_AUTH = False # If your using an SMTP server with a valid certificate
SMTP_SSL = True
SMTP_USER = "superset2145@gmail.com" # use the empty string "" if using an unauthenticated SMTP server
SMTP_PASSWORD = "vuyzbzkedpbxlwnu" # use the empty string "" if using an unauthenticated SMTP server
SMTP_MAIL_FROM = "superset2145@gmail.com"
EMAIL_REPORTS_SUBJECT_PREFIX = "[Superset] " # optional - overwrites default value in config.py of "[Report] "

WEBDRIVER_TYPE = "chrome"
WEBDRIVER_OPTION_ARGS = [
"--force-device-scale-factor=2.0",
"--high-dpi-support=2.0",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-extensions",
]

WEBDRIVER_BASEURL = "http://superset:8088/" # When using docker compose baseurl should be http://superset_app:8088/
# The base URL for the email report hyperlinks.
WEBDRIVER_BASEURL_USER_FRIENDLY = WEBDRIVER_BASEURL
8 changes: 4 additions & 4 deletions superset-frontend/src/visualizations/presets/MainPreset.js
Original file line number Diff line number Diff line change
@@ -87,8 +87,8 @@ import { PivotTableChartPlugin as PivotTableChartPluginV2 } from '@superset-ui/p
import { HandlebarsChartPlugin } from '@superset-ui/plugin-chart-handlebars';
import { FilterPlugins } from 'src/constants';
import TimeTableChartPlugin from '../TimeTable';
import { PluginChartCustomBar } from 'src/Custom_Viz_Plugins/plugin-chart-custom-bar/src';
import { PluginChartCustomProjectStatusViz } from 'src/Custom_Viz_Plugins/plugin-chart-custom-project-status-viz/src';
//import { PluginChartCustomBar } from 'src/Custom_Viz_Plugins/plugin-chart-custom-bar/src';
//import { PluginChartCustomProjectStatusViz } from 'src/Custom_Viz_Plugins/plugin-chart-custom-project-status-viz/src';
export default class MainPreset extends Preset {
constructor() {
const experimentalPlugins = isFeatureEnabled(
@@ -105,8 +105,8 @@ export default class MainPreset extends Preset {
name: 'Legacy charts',
presets: [new DeckGLChartPreset()],
plugins: [
new PluginChartCustomBar().configure({key: "plugin-chart-custom-bar"}),
new PluginChartCustomProjectStatusViz().configure({key: "plugin-chart-custom-project-status-viz"}),
//new PluginChartCustomBar().configure({key: "plugin-chart-custom-bar"}),
//new PluginChartCustomProjectStatusViz().configure({key: "plugin-chart-custom-project-status-viz"}),
new AreaChartPlugin().configure({ key: VizType.LegacyArea }),
new BarChartPlugin().configure({ key: VizType.LegacyBar }),
new BigNumberChartPlugin().configure({ key: VizType.BigNumber }),

0 comments on commit 4447fee

Please sign in to comment.