Vamsi-klu opened a new pull request, #62656:
URL: https://github.com/apache/airflow/pull/62656

   ## Summary
   - Wrap `enc_hook` in `json_dumps()` with a `safe_default()` fallback that 
catches `TypeError` and falls back to `str()`
   - Prevents the logging pipeline from crashing when log event dicts contain 
objects that `msgspec` cannot serialize
   - Defensive fallback only engages when normal serialization paths fail
   
   ## Test plan
   - [ ] Verify logging with standard serializable objects still works
   - [ ] Verify logging with non-serializable objects (e.g., custom classes) 
falls back to `str()` instead of crashing
   - [ ] Run `pytest task-sdk/tests/ -k log -v`
   
   Closes: #62472
   Closes: #62201
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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