#1032 refactor: streamline shutdown handling in _serve function
Pull request opened by
cosmicBboy
• Removed signal handling for SIGTERM to prevent race conditions during server shutdown.
• Renamed shutdown function to run_user_shutdown_hooks for clarity.
• Ensured that user-defined shutdown hooks are executed properly without blocking the event loop.
This change enhances the reliability of the server shutdown process in the Flyte application.
flyteorg/flyte-sdk