angular / angular-cli

CLI tool for Angular
https://cli.angular.dev
MIT License
26.77k stars 11.98k forks source link

Request to implement Idle timeout for ng serve process #25073

Closed softgandhi closed 1 year ago

softgandhi commented 1 year ago

Command

serve

Description

Hi there, I would like to know if we have any feature that would kill or terminate the ng serve process automatically (without pressing ctrl + c manually) where requests are not being served for more than n minutes.

Why I need it? most of the time, while doing multi-tasking, I forget to manually kill ng serve command even long after switching to another task or leaving the computer on and moving out of desk. ng serve keeps on running taking ˜2GB of ram blocking for other processes. so, its better to auto kill "ng serve" process when requests are not being served for more than n mins.

I am not sure if any similar feature is already there. I hope other people would also be facing same issue especially on Mac M1 where I don't have option to upgrade my RAM.

Describe the solution you'd like

probably an idle timer implementation to auto stop ng serve process.

Describe alternatives you've considered

I currently don't think of any good alternative.

alan-agius4 commented 1 year ago

Hi @softgandhi,

Thanks for this feature request.

However, this currently is not in scope.

angular-automatic-lock-bot[bot] commented 1 year ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.