Skip to content

Poorly managed shutdown of distributed and/or sqlite #12312

Open

Description

@crusaderky

The test suite issues a bunch of PytestUnraisableExceptionWarning on the tests that operate with the distributed scheduler and/or with sqlite3, mentioning an improperly shut down service.

Unsure if this is just a test-specific issue or if it highlights a genuine race condition in the shutdown sequence of dask.distributed.
Either way, they should be looked into and cleaned up.

The warnings are currently suppressed by

dask/pyproject.toml

Lines 176 to 178 in e0529bb

# FIXME spurious shutdown of distributed workers and/or sqlite3
"module:Exception ignored:pytest.PytestUnraisableExceptionWarning::",
"module:unclosed database in <sqlite3.Connection:ResourceWarning::",

Activity

  1. added
    needs triage
    on Mar 4, 2026
  2. added
    needs attention
    on May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs attentionneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions