MCPcopy Create free account
hub / github.com/codename-co/stack / CeleryConfig

Class CeleryConfig

hub/superset/docker/pythonpath_dev/superset_config.py:75–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74
75class CeleryConfig:
76 broker_url = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
77 imports = (
78 "superset.sql_lab",
79 "superset.tasks.scheduler",
80 "superset.tasks.thumbnails",
81 "superset.tasks.cache",
82 )
83 result_backend = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_RESULTS_DB}"
84 worker_prefetch_multiplier = 1
85 task_acks_late = False
86 beat_schedule = {
87 "reports.scheduler": {
88 "task": "reports.scheduler",
89 "schedule": crontab(minute="*", hour="*"),
90 },
91 "reports.prune_log": {
92 "task": "reports.prune_log",
93 "schedule": crontab(minute=10, hour=0),
94 },
95 }
96
97
98CELERY_CONFIG = CeleryConfig

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected