aliJabra edited a comment on pull request #13104:
URL: https://github.com/apache/superset/pull/13104#issuecomment-785185040


   @vnourdin - thanks for the documentation! I'm running superset locally 
installed via pip (1.0.1). Is docker also a preferred way to run the 'backend' 
for generating alerts and reports? 
   I've superset_config.py properly configured (i think), can see the alerts 
and reports, slack & email stmp tokens etc. set. I can create alerts and 
reports, but they never trigger.. 
   
   I have a celery worker: 
   `celery worker --app=superset.tasks.celery_app:app --pool=prefork -O fair -c 
4 -E  --concurrency=500 &
   `
   and a beat process running in bg:
   `celery beat --app=superset.tasks.celery_app:app --pidfile 
/tmp/celerybeat.pid --schedule /tmp/celerybeat-schedule &
   `
   
   I've used the default celery settings as per config.py
   
   `
   ```
   class CeleryConfig:  # pylint: disable=too-few-public-methods
       BROKER_URL = "sqla+sqlite:///celerydb.sqlite"
       CELERY_IMPORTS = ("superset.sql_lab", "superset.tasks")
       CELERY_RESULT_BACKEND = "db+sqlite:///celery_results.sqlite"
       CELERYD_LOG_LEVEL = "DEBUG"
       CELERYD_PREFETCH_MULTIPLIER = 1
       CELERY_ACKS_LATE = True
       CELERY_ANNOTATIONS = {
           "sql_lab.get_sql_results": {"rate_limit": "100/s"},
           "email_reports.send": {
               "rate_limit": "1/s",
               "time_limit": 600,
               "soft_time_limit": 600,
               "ignore_result": True,
           },
       }
       CELERYBEAT_SCHEDULE = {
           "email_reports.schedule_hourly": {
               "task": "email_reports.schedule_hourly",
               "schedule": crontab(minute=1, hour="*"),
           },
           "reports.scheduler": {
               "task": "reports.scheduler",
               "schedule": crontab(minute="*", hour="*"),
           },
           "reports.prune_log": {
               "task": "reports.prune_log",
               "schedule": crontab(minute=0, hour=0),
           },
       }
   
   
   CELERY_CONFIG = CeleryConfig
   ```
   `
   
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to