Skip to content

v5 - Reports stuck in sending state #40047

@adayush

Description

@adayush

Bug description

Hi team,

We have been facing a issue where the Reports are not being completed or failed, they are just stuck in sending state (attached screenshot below).

Observations:

  1. Both existing and new reports have this issue
  2. We tried using both CSV & PNG & PDF reports sent to Email
  3. Worker logs (before setting reports to Error state) just mention that Report Schedule is still working, refusing to re-compute
  4. After we set all reports to Error state -> Worker logs have nothing useful. We don't get any logs after the one saying report is triggered (logs shared below). So report is visibly stuck in sending state
  5. Reports were working fine 10 days back. Now they are not. We did not restart/rebuild the superset containers then
[2026-05-12 10:05:00,003: INFO/MainProcess] Task reports.scheduler[1daef3b7-ebb2-4f85-991e-245b1991f363] received
[2026-05-12 10:05:00,020: INFO/ForkPoolWorker-1] Scheduling alert New Design BI plans. eta: 2026-05-12 10:05:00
[2026-05-12 10:05:00,026: INFO/MainProcess] Task reports.execute[fea367b7-33f8-4ce9-aeda-c108457ae169] received
[2026-05-12 10:05:00,027: INFO/ForkPoolWorker-2] Executing alert/report, task id: fea367b7-33f8-4ce9-aeda-c108457ae169, scheduled_dttm: 2026-05-12T10:05:00
[2026-05-12 10:05:00,028: INFO/ForkPoolWorker-2] session is validated: id 17, executionid: fea367b7-33f8-4ce9-aeda-c108457ae169
[2026-05-12 10:05:00,052: INFO/ForkPoolWorker-1] Task reports.scheduler[1daef3b7-ebb2-4f85-991e-245b1991f363] succeeded in 0.04761948483064771s: None
[2026-05-12 10:05:00,210: INFO/ForkPoolWorker-2] Running report schedule fea367b7-33f8-4ce9-aeda-c108457ae169 as user sharpsell-admin
[2026-05-12 10:05:00,334: WARNING/ForkPoolWorker-2] A downstream warning occurred while generating a report: fea367b7-33f8-4ce9-aeda-c108457ae169. Report Schedule is still working, refusing to re-compute.
Traceback (most recent call last):
  File "/app/superset/tasks/scheduler.py", line 99, in execute
    ).run()
      ^^^^^
  File "/app/superset/utils/decorators.py", line 266, in wrapped
    return on_error(ex)
           ^^^^^^^^^^^^
  File "/app/superset/utils/decorators.py", line 236, in on_error
    raise ex
  File "/app/superset/utils/decorators.py", line 259, in wrapped
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/app/superset/commands/report/execute.py", line 896, in run
    ).run()
      ^^^^^
  File "/app/superset/utils/decorators.py", line 266, in wrapped
    return on_error(ex)
           ^^^^^^^^^^^^
  File "/app/superset/utils/decorators.py", line 236, in on_error
    raise ex
  File "/app/superset/utils/decorators.py", line 259, in wrapped
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/app/superset/commands/report/execute.py", line 858, in run
    ).next()
      ^^^^^^
  File "/app/superset/commands/report/execute.py", line 783, in next
    raise exception_working
superset.commands.report.exceptions.ReportSchedulePreviousWorkingError: Report Schedule is still working, refusing to re-compute.
[2026-05-12 10:05:00,341: INFO/ForkPoolWorker-2] Task reports.execute[fea367b7-33f8-4ce9-aeda-c108457ae169] succeeded in 0.31424060883000493s: None

Here's what we've tried so far, but didn't help:

  1. Marking all reports being in "Working" state to "Error" state using SQL query
  2. Also tried marking them to "Not triggered"
  3. Rebuilt superset image and restarted worker
  4. Increased celery worker timeout in config from 1 minute to 5 minutes

Screenshots/recordings

Image

Superset version

5.0.0

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    alert-reportsNamespace | Anything related to the Alert & Reports feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions