lizheng404 opened a new issue #17404:
URL: https://github.com/apache/superset/issues/17404


   After I create an alert, when it is triggered, there will be two logs,  one 
is triggered and the other is always working
   
   #### Screenshots
   
![FA00FFD3-E3B5-4192-8ECB-868461FE7B2F](https://user-images.githubusercontent.com/85994064/141294455-28a21908-bb9c-4a0d-9229-df549c056d65.png)
   
![BA340197-A075-4c4e-8184-E8F6518B9737](https://user-images.githubusercontent.com/85994064/141294456-b29a0bc3-368a-4dcc-aba8-dfca048b9181.png)
   
   ### Environment
   - superset version: `1.3.2`
   - python version: `3.8`
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [ ] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version 
of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   There is my celery command:
   
       celery --app=superset.tasks.celery_app:app worker --pool=prefork  -O 
fair -c 4
   
       celery --app=superset.tasks.celery_app:app beat
   
   Top command output:
   ![Uploading 13906728-4046-4ac3-9469-996CAAC19773.png…]()
   
   
   There is my celery configuration:
   
   class CeleryConfig(object):
       BROKER_URL = "redis://localhost:6379/0"
       CELERY_IMPORTS = (
           "superset.sql_lab", 
           "superset.tasks", 
           "superset.tasks.thumbnails",
       )
       CELERY_RESULT_BACKEND = "redis://localhost:6379/0"
       CELERYD_PREFETCH_MULTIPLIER = 10
       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 = {
           'reports.scheduler': {
               'task': 'reports.scheduler',
               'schedule': crontab(minute='*', hour='*'),
           },
           'reports.prune_log': {
               'task': 'reports.prune_log',
               'schedule': crontab(minute=0, hour=0),
           },
       } 
   
   Is there a problem with my configuration or command? any idea is appreciated
   


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

Reply via email to