I think that killing Tasks isn’t proper. I suppose you should rather communicate to the Task that it should exit using a Channel, or otherwise synchronize using, for example, Semaphores.
Furthermore, I think you’re a bit confused about what Tasks are/do, they’re just coroutines: Tasks · The Julia Language
So they don’t run in parallel. Maybe you want threads or processes instead of Tasks.