azure-functions-python-worker icon indicating copy to clipboard operation
azure-functions-python-worker copied to clipboard

Handle SIGTERM signal

Open balag0 opened this issue 5 years ago • 5 comments

To debug error 143 , the python worker process should handle SIGTERM signal and log the current memory usage before exiting.

We need this until we have some other way of getting memory status from the container.

balag0 avatar Nov 19 '19 07:11 balag0

Hey Bala, I don't have too much context, could you attach a link to error 143 here?

Hazhzeng avatar Nov 21 '19 02:11 Hazhzeng

This is on the roadmap for the next few months.

kulkarnisonia16 avatar Dec 17 '19 19:12 kulkarnisonia16

There are places exit with 143, worker dies before the host (maybe memory issue). Logs through STDERR, needs to implement SIGTERM handler.

Hazhzeng avatar Jan 14 '20 22:01 Hazhzeng

@balag0 is this still relevant?

stefanushinardi avatar Dec 14 '21 18:12 stefanushinardi

Yes.

balag0 avatar Dec 14 '21 19:12 balag0