kalluripradeep opened a new pull request, #62475:
URL: https://github.com/apache/airflow/pull/62475

   Fixes #62372
   
   ## What changed
   
   Added 404 handling in `_read_from_logs_server` in `file_task_handler.py` 
   with a local filesystem fallback and a clear message when logs aren't 
   accessible.
   
   ## How I fixed it
   
   Added an `elif response.status_code == 404` branch that:
   
   1. First tries reading from local filesystem via `_read_from_local` — 
      covers cases where logs are on a shared drive
   2. If that also finds nothing, shows the user a clear message instead 
      of a raw 404:
      "Log file not found on worker '{hostname}'. This attempt may have 
      run on a different worker whose logs are no longer accessible. 
      Consider configuring remote logging (S3, GCS, etc.) for log 
      persistence."
   
   


-- 
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