gautam-vaibhav302 commented on issue #37491:
URL: https://github.com/apache/superset/issues/37491#issuecomment-3945882909
It is fixed now. The main issue was with the Celery worker and the cache
server being not configured.
I used Redis for the cache storage server that server the worker for
generating & storing the screenshot for the given cache ID of the corresponding
dashboard.
Below are the some changes that i made in the superset/config.py file.
```
class CeleryConfig: # pylint: disable=too-few-public-methods
# Use Redis for Celery so async dashboard screenshot/PDF export can run.
# broker_url = "sqla+sqlite:///celerydb.sqlite"
broker_url = "redis://127.0.0.1:6379/0"
imports = (
"superset.sql_lab",
"superset.tasks.scheduler",
"superset.tasks.thumbnails",
"superset.tasks.cache",
"superset.tasks.slack",
)
# result_backend = "db+sqlite:///celery_results.sqlite"
result_backend = "redis://127.0.0.1:6379/1"
worker_prefetch_multiplier = 1
task_acks_late = False
task_annotations = {
"sql_lab.get_sql_results": {
"rate_limit": "100/s",
},
}
```
```
THUMBNAIL_CACHE_CONFIG: CacheConfig = {
# NullCache never persists screenshot payloads; dashboard PDF export will
# poll forever. Use Redis so screenshot status/bytes can be stored.
"CACHE_TYPE": "RedisCache",
"CACHE_REDIS_URL": "redis://127.0.0.1:6379/0",
"CACHE_DEFAULT_TIMEOUT": int(timedelta(days=7).total_seconds()),
"CACHE_NO_NULL_WARNING": True,
}
```
```
DEFAULT_FEATURE_FLAGS: dict[str, bool] = {
"THUMBNAILS": True,
"ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS": True,
"ENABLE_DASHBOARD_DOWNLOAD_WEBDRIVER_SCREENSHOT": True,
"PLAYWRIGHT_REPORTS_AND_THUMBNAILS": True,
}
```
Hope that helps.
And with that, I am finally Closing this issue.
Thanks everyone for being supportive in the community.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]