Skip to content

Commit

Permalink
perf: add back fullsweep_after to Task.Supervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Nov 7, 2024
1 parent 0ca5a2b commit 786d662
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/logflare/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ defmodule Logflare.Application do
name: Logflare.V1SourceRegistry,
keys: :unique,
partitions: max(round(System.schedulers_online() / 8), 1)},
{PartitionSupervisor, child_spec: Task.Supervisor, name: Logflare.TaskSupervisors},
{PartitionSupervisor,
child_spec: {Task.Supervisor, [spawn_opt: [fullsweep_after: 1_000]]},
name: Logflare.TaskSupervisors},
{DynamicSupervisor, strategy: :one_for_one, name: Logflare.Endpoints.Cache},
{DynamicSupervisor,
strategy: :one_for_one,
Expand All @@ -75,7 +77,9 @@ defmodule Logflare.Application do
conditional_children() ++
[
Logflare.ErlSysMon,
{PartitionSupervisor, child_spec: Task.Supervisor, name: Logflare.TaskSupervisors},
{PartitionSupervisor,
child_spec: {Task.Supervisor, [spawn_opt: [fullsweep_after: 1_000]]},
name: Logflare.TaskSupervisors},
{Cluster.Supervisor, [topologies, [name: Logflare.ClusterSupervisor]]},
Logflare.Repo,
Logflare.Vault,
Expand Down

0 comments on commit 786d662

Please sign in to comment.