Skip to content

Commit de41fd1

Browse files
authored
Relax supervision max restart intensity (#1316)
Move from 5 restarts in 1 minute to 10 restarts in 10 seconds. Background jobs are often not critical. This change should prevent unnecessary node crashes.
1 parent d5f6dce commit de41fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/els_lsp/src/els_background_job_sup.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ start_link() ->
3737
init([]) ->
3838
SupFlags = #{
3939
strategy => simple_one_for_one,
40-
intensity => 5,
41-
period => 60
40+
intensity => 10,
41+
period => 10
4242
},
4343
ChildSpecs = [
4444
#{

0 commit comments

Comments
 (0)