You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/09/10 08:17:02 UTC

[GitHub] [superset] pritypriya25 removed a comment on issue #15118: How to compute and cache a screenshot using rest api in superset

pritypriya25 removed a comment on issue #15118:
URL: https://github.com/apache/superset/issues/15118#issuecomment-915930761


   @Hvitgar @YangJianFei 
   
   I am adding the following lines in my superset_config.py file.
   
   
   DATA_CACHE_CONFIG = {
   
       'CACHE_TYPE': 'redis',
   
       'CACHE_DEFAULT_TIMEOUT': 60 * 60 * 24, #1-day default (in secs)
   
       'CACHE_KEY_PREFIX': 'superset_results',
   
       'CACHE_REDIS_URL': 'redis://localhost:6379/0',
   
   }
   
    
   
    
   
   CELERYBEAT_SCHEDULE = {
   
       'cache-warmup-hourly': {
   
           'task': 'cache-warmup',
   
           'schedule': crontab(minute=0, hour='*'),  # hourly
   
           'kwargs': {
   
               'strategy_name': 'top_n_dashboards',
   
               'top_n': 5,
   
               'since': '7 days ago',
   
           },
   
       },
   
   }
   
    
   
   FEATURE_FLAGS = {
   
       "THUMBNAILS": True,
   
       "THUMBNAILS_SQLA_LISTENERS": True,
   
   }
   
    
   
   
   I am now getting the result from hitting the API but the status code is 202 and when I hit the URL given in response then I am not getting any result of the image. Please help me with what else I need to add to my default configured file for getting the image on hitting the image URL. 
   ![Screenshot (27)](https://user-images.githubusercontent.com/85749375/132663126-a3c568db-d79d-4b83-81a1-b6e936810df0.png)
   
   
    
   
    


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org