archethic-node icon indicating copy to clipboard operation
archethic-node copied to clipboard

Partionnate TaskSupervisor

Open Neylix opened this issue 5 months ago • 0 comments

Is your feature request related to a problem?

In many situation in the code we create a new Task to do asynchronous stuff, but we don't want it to be linked to the caller process but still supervised. To do so we use the module Task.Supervisor which require the application to start a TaskSupervisor process. Currently we only have 1 TaskSupervisor process, and according to the documentation, it could lead to bottleneck.

Describe the solution you'd like

Create multiple instance of a TaskSupervisor using the PartitionSupervisor as mentionned in the documentation: https://hexdocs.pm/elixir/Task.Supervisor.html#module-scalability-and-partitioning

Additional context

No response

Epic

No response

Neylix avatar Sep 23 '24 12:09 Neylix