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

[Placeholder]Add support for reloading modules

Open pragnagopa opened this issue 6 years ago • 5 comments

This is tracking issue to investigate the work needed on the python worker when JobHost restarts. As of now when JobHost restarts, python language worker is restarted as well. If a python worker is started in placeholder mode, on a jobhost restart -> functions host will send a new message JobHost restart event Python worker needs to :

  • Reload modules for a python function https://docs.python.org/3.4/library/importlib.html#importlib.reload
  • Clear any in-memory state

pragnagopa avatar Jan 24 '19 20:01 pragnagopa

cc @asavaritayal

pragnagopa avatar Jan 24 '19 20:01 pragnagopa

@asavaritayal this work is blocked and beyond capacity for this sprint. So I'm moving this to Triaged.

fabiocav avatar Feb 20 '19 21:02 fabiocav

Spoke to @pragnagopa and this work is only required if we want to support live editing (i.e. Portal). Since that is not a mainline scenario, moving this down in priority.

maiqbal11 avatar Mar 13 '19 21:03 maiqbal11

Linux Dedicated, in portal editing, on save, JobHost restarts, may restart the Python worker.

  • dependency resolution
  • module reloading we need to confirm with the host team (may need to build a new infrastructure)

Hazhzeng avatar Jan 14 '20 22:01 Hazhzeng

@vrdmr to take a look

stefanushinardi avatar Dec 14 '21 17:12 stefanushinardi