love1angel opened a new issue, #58708:
URL: https://github.com/apache/airflow/issues/58708

   ### Apache Airflow version
   
   3.1.3
   
   ### If "Other Airflow 2/3 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   ```
   scheduler  | 2025-11-26T08:07:05.179595Z [error    ] Exception when 
executing SchedulerJob._run_scheduler_loop 
[airflow.jobs.scheduler_job_runner.SchedulerJobRunner] 
loc=scheduler_job_runner.py:1082
   scheduler  | Traceback (most recent call last):
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/scheduler_job_runner.py",
 line 1078, in _execute
   scheduler  | self._run_scheduler_loop()
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/scheduler_job_runner.py",
 line 1376, in _run_scheduler_loop
   scheduler  | executor.heartbeat()
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/traces/tracer.py", 
line 58, in wrapper
   scheduler  | return func(*args, **kwargs)
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/base_executor.py",
 line 257, in heartbeat
   scheduler  | self.sync()
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/local_executor.py",
 line 210, in sync
   scheduler  | self._read_results()
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/local_executor.py",
 line 215, in _read_results
   scheduler  | key, state, exc = self.result_queue.get()
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^^^
   scheduler  | File "/usr/lib/python3.12/multiprocessing/queues.py", line 389, 
in get
   scheduler  | return _ForkingPickler.loads(res)
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^^^^^^
   scheduler  | TypeError: HTTPStatusError.__init__() missing 2 required 
keyword-only arguments: 'request' and 'response'
   scheduler  | 2025-11-26T08:07:05.181398Z [info     ] Shutting down 
LocalExecutor; waiting for running tasks to finish.  Signal again if you don't 
want to wait. [airflow.executors.local_executor.LocalExecutor] 
loc=local_executor.py:221
   dag-processor | 2025-11-26T08:07:05.181743Z [info     ] Setting next_dagrun 
for tutorial_taskflow_api to None, run_after=None [airflow.models.dag] 
loc=dag.py:688
   scheduler  | 2025-11-26T08:07:05.192052Z [info     ] Exited execute loop     
       [airflow.jobs.scheduler_job_runner.SchedulerJobRunner] 
loc=scheduler_job_runner.py:1094
   scheduler  | Traceback (most recent call last):
   scheduler  | File "/home/xp/airflow_venv/bin/airflow", line 8, in <module>
   scheduler  | sys.exit(main())
   scheduler  | ^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/__main__.py", line 
55, in main
   scheduler  | args.func(args)
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/cli_config.py", 
line 49, in command
   scheduler  | return func(*args, **kwargs)
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/utils/cli.py", line 
114, in wrapper
   scheduler  | return f(*args, **kwargs)
   scheduler  | ^^^^^^^^^^^^^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/utils/providers_configuration_loader.py",
 line 54, in wrapped_function
   scheduler  | return func(*args, **kwargs)
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/commands/scheduler_command.py",
 line 52, in scheduler
   scheduler  | run_command_with_daemon_option(
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/commands/daemon_utils.py",
 line 86, in run_command_with_daemon_option
   scheduler  | callback()
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/commands/scheduler_command.py",
 line 55, in <lambda>
   scheduler  | callback=lambda: _run_scheduler_job(args),
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/cli/commands/scheduler_command.py",
 line 43, in _run_scheduler_job
   scheduler  | run_job(job=job_runner.job, 
execute_callable=job_runner._execute)
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/utils/session.py", 
line 100, in wrapper
   scheduler  | return func(*args, session=session, **kwargs)
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/job.py", line 
368, in run_job
   scheduler  | return execute_job(job, execute_callable=execute_callable)
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/job.py", line 
397, in execute_job
   scheduler  | ret = execute_callable()
   scheduler  | ^^^^^^^^^^^^^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/scheduler_job_runner.py",
 line 1078, in _execute
   scheduler  | self._run_scheduler_loop()
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/jobs/scheduler_job_runner.py",
 line 1376, in _run_scheduler_loop
   scheduler  | executor.heartbeat()
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/traces/tracer.py", 
line 58, in wrapper
   scheduler  | return func(*args, **kwargs)
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/base_executor.py",
 line 257, in heartbeat
   scheduler  | self.sync()
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/local_executor.py",
 line 210, in sync
   scheduler  | self._read_results()
   scheduler  | File 
"/home/xp/airflow_venv/lib/python3.12/site-packages/airflow/executors/local_executor.py",
 line 215, in _read_results
   scheduler  | key, state, exc = self.result_queue.get()
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^^^
   scheduler  | File "/usr/lib/python3.12/multiprocessing/queues.py", line 389, 
in get
   scheduler  | return _ForkingPickler.loads(res)
   scheduler  | ^^^^^^^^^^^^^^^^^^^^^^^^^^
   scheduler  | TypeError: HTTPStatusError.__init__() missing 2 required 
keyword-only arguments: 'request' and 'response'
   scheduler  | INFO:     Shutting down
   ```
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   in ubuntu 24.04
   $ pip install apache-airflow[EXTRAS]==AIRFLOW_VERSION --constraint 
"https://raw.githubusercontent.com/apache/airflow/constraints-AIRFLOW_VERSION/constraints-PYTHON_VERSION.txt";
   
   $ airflow standalone
   
   
   ### Operating System
   
   ubuntu 24.04
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to