Docker creating zombie processes

I’m running ubuntu server and whenever I leave my workflows running I return to see Zombie processes that go away once I restart.

It’s not an issue for me, but I would like to help figure out if it’s a bug. How can I do that?

Yes, I also saw on my server that a few zombie processes were there and wanted to investigate. Sadly did not get to it yet. So it would definitely be great if you could check that out! Honestly, do not know much how a process turns into a zombie (and not even what the definition is).

However, the interesting code would be this:

This code starts the workflow processes:

This code gets executed in the new process and executes the new workflow:

Maybe it would be better to not create a new process and instead start it in a worker thread.
There is some discussion about that going on here:

That could maybe at the same time solve this problem, reduce CPU and memory consumption and reduce the time that it takes new workflows to start to execute (which is currently horribly slow with around 1 second).