Skip to content

func.exe Processes Not Ending And Holding On To Ports #4322

@anthonywhite

Description

@anthonywhite

Version

Core Tools Version: 4.0.6821
Function Runtime Version: 4.1036.1.23224

Description

After running a function locally in VS Code (whether debugging or not), an iteration of stopping, editing and running again often shows multiple of these warnings in the terminal window:

warning MSB3231: Unable to remove directory "\obj\Debug\net8.0\WorkerExtensions"

and even after killing all terminals, running
Get-Process -Id (Get-NetTCPConnection -LocalPort 7071).OwningProcess

often shows a func.exe still running:

 NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName
 ------    -----      -----     ------      --  -- -----------
    242    61.06     215.07       3.62   29888   5 func

and even closing VS Code doesn't always work...

Steps to reproduce

see description

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions