Skip to content

[BUG] Duplicate callback outputs not working when deployed with gunicorn #2480

@hannahker

Description

@hannahker

Describe your context

Bug only present when app is deployed via Dash Enterprise.

dash                          2.9.1
dash-ag-grid                  2.0.0a4
dash-core-components          2.0.0
dash-design-kit               1.6.8
dash-extensions               0.0.65
dash-html-components          2.0.0
dash-leaflet                  0.1.23
dash-mantine-components       0.12.0
dash-table                    5.0.0

Describe the bug

Callbacks with duplicate outputs don't work reliably when my app is deployed with gunicorn (ie. DE), giving errors like this:

KeyError: "Callback function not found for output '..image-options.rowData...geojson.data...satellite-img.children@e635ba05b4e74958834c65e29d0a3207...classified-img.children@b954a7e5a88643d29e99412073ede694...image-options.selectedRows...delete-notify.children..', perhaps you forgot to prepend the '@'?"

There is definitely the appropriate decorator on my function. The callbacks behave as expected when I run the app locally, both with Python and with gunicorn. About 10% of the time the callback will run fine.

Expected behavior

I'd expect this KeyError not to occur when the app is deployed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions