Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ee/audit/lib/audit/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule Audit.Application do

children = filter_enabled_children(children)

opts = [strategy: :one_for_one, name: Audit.Supervisor]
opts = [strategy: :one_for_one, name: Audit.Supervisor, max_restarts: 1000]
Supervisor.start_link(children, opts)
end

Expand Down
3 changes: 2 additions & 1 deletion ee/gofer/lib/gofer/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ defmodule Gofer.Application do
def start(_type, _args) do
Supervisor.start_link(Enum.filter(@children, &start_child?/1),
strategy: :one_for_one,
name: Gofer.Supervisor
name: Gofer.Supervisor,
max_restarts: 1000
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule PreFlightChecks.Application do
PreFlightChecks.Consumers
]

opts = [strategy: :one_for_one, name: PreFlightChecks.Supervisor]
opts = [strategy: :one_for_one, name: PreFlightChecks.Supervisor, max_restarts: 1000]
Supervisor.start_link(children, opts)
end
end
2 changes: 1 addition & 1 deletion ee/rbac/lib/rbac/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule Rbac.Application do
|> add_task_supervisor()
|> add_rabbit_workers()

opts = [strategy: :one_for_one, name: Rbac.Supervisor]
opts = [strategy: :one_for_one, name: Rbac.Supervisor, max_restarts: 1000]
Supervisor.start_link(children, opts)
end

Expand Down
2 changes: 1 addition & 1 deletion front/lib/front/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule Front.Application do
feature_provider(provider) ++
clients()

opts = [strategy: :one_for_one, name: Front.Supervisor]
opts = [strategy: :one_for_one, name: Front.Supervisor, max_restarts: 1000]

unless Application.get_env(:front, :environment) in [:dev, :test] do
{:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
Expand Down
2 changes: 1 addition & 1 deletion github_notifier/lib/github_notifier/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ defmodule GithubNotifier.Application do
{:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
Logger.configure_backend(Sentry.LoggerBackend, include_logger_metadata: true)

opts = [strategy: :one_for_one, name: GithubNotifier.Supervisor]
opts = [strategy: :one_for_one, name: GithubNotifier.Supervisor, max_restarts: 1000]
Supervisor.start_link(children, opts)
end

Expand Down
2 changes: 1 addition & 1 deletion guard/lib/guard/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule Guard.Application do
{:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
end

opts = [strategy: :one_for_one, name: Guard.Supervisor]
opts = [strategy: :one_for_one, name: Guard.Supervisor, max_restarts: 1000]
Supervisor.start_link(children, opts)
end

Expand Down
2 changes: 1 addition & 1 deletion hooks_processor/lib/hooks_processor/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule HooksProcessor.Application do

:logger.add_handler(:sentry_handler, Sentry.LoggerHandler, %{})

opts = [strategy: :one_for_one, name: HooksProcessor.Supervisor]
opts = [strategy: :one_for_one, name: HooksProcessor.Supervisor, max_restarts: 1000]
Supervisor.start_link(children, opts)
end

Expand Down
2 changes: 1 addition & 1 deletion notifications/lib/notifications/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule Notifications.Application do
Notifications.Workers.Destroyer
] ++ grpc_services()

opts = [strategy: :one_for_one, name: Notifications.Supervisor]
opts = [strategy: :one_for_one, name: Notifications.Supervisor, max_restarts: 1000]

unless env() in [:dev, :test] do
{:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Scheduler.Application do
provider = Application.fetch_env!(:scheduler, :feature_provider)
FeatureProvider.init(provider)

opts = [strategy: :one_for_one, name: Scheduler.Supervisor]
opts = [strategy: :one_for_one, name: Scheduler.Supervisor, max_restarts: 1000]
get_env() |> children() |> Supervisor.start_link(opts)
end

Expand Down
2 changes: 1 addition & 1 deletion plumber/block/lib/block/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule Block.Application do

# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: Block.Supervisor]
opts = [strategy: :one_for_one, name: Block.Supervisor, max_restarts: 1000]
get_env() |> children() |> Supervisor.start_link(opts)
end

Expand Down
2 changes: 1 addition & 1 deletion plumber/ppl/lib/ppl/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule Ppl.Application do

# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: Ppl.Supervisor]
opts = [strategy: :one_for_one, name: Ppl.Supervisor, max_restarts: 1000]
(children(get_env()) ++ grpc_supervisor(get_env())) |> Supervisor.start_link(opts)
end

Expand Down
2 changes: 1 addition & 1 deletion projecthub/lib/projecthub/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule Projecthub.Application do
Logger.info("Starting: #{inspect(c)}")
end)

opts = [strategy: :one_for_one, name: Projecthub.Supervisor]
opts = [strategy: :one_for_one, name: Projecthub.Supervisor, max_restarts: 1000]

if env == :prod do
{:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
Expand Down
2 changes: 1 addition & 1 deletion public-api/v2/lib/public_api/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule PublicAPI.Application do

# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: PublicAPI.Supervisor]
opts = [strategy: :one_for_one, name: PublicAPI.Supervisor, max_restarts: 1000]
Supervisor.start_link(children(Application.get_env(:public_api, :environment)), opts)
end

Expand Down
2 changes: 1 addition & 1 deletion rbac/ce/lib/rbac/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Rbac.Application do
|> add_grpc_service()
|> add_rabbit_consumers()

opts = [strategy: :one_for_one, name: Rbac.Supervisor]
opts = [strategy: :one_for_one, name: Rbac.Supervisor, max_restarts: 1000]
Supervisor.start_link(children, opts)
end

Expand Down
2 changes: 1 addition & 1 deletion repository_hub/lib/repository_hub/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule RepositoryHub.Application do
{{RepositoryHub.RemoteIdSyncWorker, remote_id_sync_worker_opts}, remote_id_sync_worker_enabled}
])

opts = [strategy: :one_for_one, name: RepositoryHub.Supervisor]
opts = [strategy: :one_for_one, name: RepositoryHub.Supervisor, max_restarts: 1000]

Supervisor.start_link(children, opts)
end
Expand Down