Skip to content

Python 3.14 compatibility issue with daemon thread executor #3

Description

@Attakay78

When running FastAPI Taskflow on Python 3.14, task execution fails with an AttributeError originating from _DaemonThreadPoolExecutor._adjust_thread_count().

The implementation accesses the private attributes _initializer and _initargs, but these attributes are not present on the executor instance in Python 3.14.

Error

AttributeError: '_DaemonThreadPoolExecutor' object has no attribute '_initializer'

Traceback:

File "/app/.venv/lib/python3.14/site-packages/fastapi_taskflow/manager.py", line 244, in _adjust_thread_count
    self._initializer,
AttributeError: '_DaemonThreadPoolExecutor' object has no attribute '_initializer'

Environment

  • Python: 3.14.6
  • FastAPI Taskflow: 0.10.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions