When I run this hook from the command line it runs as expected, the parent python script exits and the child process is running in the background.
This python script fires off a long running job supposedly in the background and I don’t wish to wait for it to complete before moving on (it includes a few sleep commands).
I created a before_provision foreman hook python script.