Skip to content
Open
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
7 changes: 5 additions & 2 deletions lib/flame/runner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,18 @@ defmodule FLAME.Runner do
other when other in [{:ok, nil}, :error] -> {30_000, fn -> true end}
end

timeout = opts[:timeout] || 30_000
boot_timeout = opts[:boot_timeout] || 30_000

runner =
%Runner{
status: :awaiting_boot,
backend: :pending,
backend_init: :pending,
log: Keyword.get(opts, :log, false),
single_use: Keyword.get(opts, :single_use, false),
timeout: opts[:timeout] || 30_000,
boot_timeout: opts[:boot_timeout] || 30_000,
timeout: max(timeout, boot_timeout),
boot_timeout: boot_timeout,
shutdown_timeout: opts[:shutdown_timeout] || 30_000,
idle_shutdown_after: idle_shutdown_after_ms,
idle_shutdown_check: idle_check,
Expand Down