Btw. It is solved. By not using System.cmd and instead running tasks via Mix.Task.run. When i ran the task via System.cmd the spawned task outlived the task it was spawned from.
Btw. It is solved. By not using System.cmd and instead running tasks via Mix.Task.run. When i ran the task via System.cmd the spawned task outlived the task it was spawned from.