Skip to content

Error in testing re logging re task sdk #47232

@dstandish

Description

@dstandish

Body

Something not quite right with either sdk logging setup or test side effects.

To repro

  1. enter breeze
  2. run supervisor test
  3. Observe error
...
task_sdk/tests/execution_time/test_supervisor.py::TestHandleRequest::test_handle_requests[get_prev_successful_dagrun] PASSED [ 97%]
task_sdk/tests/execution_time/test_supervisor.py::TestHandleRequest::test_handle_requests[runtime_check_on_task] PASSED [100%]

================================== 44 passed, 1 warning in 16.54s ==================================
--- Logging error ---
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/logging/__init__.py", line 1086, in emit
    stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
  File "/opt/airflow/airflow/settings.py", line 482, in dispose_orm
    log.debug("Disposing DB connection pool (PID %s)", os.getpid())
Message: 'Disposing DB connection pool (PID %s)'
Arguments: (108,)
root@a041b505f651:/opt/airflow#

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions