-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reports are being sent multiple times #22664
Comments
@mattitoo It's not related to your problem - but could you share information if you're able to send reports of charts as png with this version of superset ? |
@devaale Yes, it works nicely. |
@mattitoo By any chance you could share your cloned superset repo as public repository of your own ? I'm having difficulty getting png using API with the master branch. |
For organisational reasons I can not do that right now. But we did not implement any changes on the Reporting features or API whatsoever. |
Mhm - understandable, no changes required in superset_config.py file either - in order for API endpoint api/v1/chart/{pk}/cache_screenshot or reporting when sending chart as .PNG to work, right ? @mattitoo Thank you - i'll try out 1.5.1 version. |
I am facing this issue too. Some day it sent out duplicately and some day did not sent |
We found out that is a timing issue when generating reports. Basically, every 60 seconds there is a check if a report is scheduled but not finished yet. But, it is not taken into account whether the report was triggered, but not finished yet. |
@mattitoo Could you please suggest? Do you have any idea how to fix it? |
Is this related to caching timeout in redis/celery worker? |
We just upgraded to Superset 2.0.1 and wanted to see if the problem persists there. If it does, we will have a look at a possible fix. |
@mattitoo we are facing same issue. did upgrade to 2.0.1 solve your problem? |
No, unfortunately this still happens. |
For us, This was caused by value of visibility timeout being lower than time taken by task to complete the job. Increasing the sqs queue's visibility timeout stopped the duplicates. |
Hi, we also tried extend VISIBILITY_TIMEOUT for celery and it resolved this issue. |
I'm tempted to close this as completed based on what I'm reading... is there anything that needs to be added to the docs and/or comments in config files so we can rest easier about doing so? |
Hey @rusackas, as @unnyns-307 mentioned, we resolved this issue by appending the following line to the config.py file: broker_transport_options = {'visibility_timeout': 18000}. The snippet below might be helpful for other users experiencing the same issue.
|
Hi @rusackas , @unnyns-307 , @zhaoyongjie , can someone help me? I'm use as @unnyns-307 mentioned, but it does not resolve this issue. broker_transport_options = {'visibility_timeout': 18000} please help. |
I looked at the Celery docs on I think this should be added to the Alerts & Reports documentation, but not the default Would anyone in this thread be willing to contribute a brief PR to the Alerts & Reports docs page so we can close this? I think it should be a commented-out line of code in the config showing how to set a valid value in a way that works with the current version of Superset, and then another comment above it saying something like: # if you have long-running reports that are being resent in a loop, extend the visibility timeout per https://github.com/apache/superset/issues/22664" |
They are different task Ids. Have you started multiple Celery Beat Instance? |
On Superset 1.5.1 we have ca. 50 reports enabled that are mostly sent on a daily basis.
Sometimes, a report is sent out mutliple times without an apparent reason (s. screenshot of the Report Execution Log), even though the report is set to only send it out once a day (s. screenshot).
This behavior has been seen on different reports on different days, with no apparent pattern. Just randomly, it seems that Superset decides to send out a report several times. The only notable circumstance is that this happens after the scheduled time.
How to reproduce the bug
Expected results
Each report is sent out according to schedule
Actual results
Some reports are sent out multiple times at random (but all around the scheudled time)
Screenshots
Environment
(please complete the following information):
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: