Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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 lib/flame/code_sync.ex
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ defmodule FLAME.CodeSync do
log_verbose("packaged size: #{File.stat!(out_path).size / (1024 * 1024)}mb")
end

File.stream!(out_path, [], code.chunk_size)
File.stream!(out_path, code.chunk_size, [])
Comment thread
josevalim marked this conversation as resolved.
Outdated
end

%PackagedStream{
Expand Down
3 changes: 0 additions & 3 deletions lib/flame/pool.ex
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,6 @@ defmodule FLAME.Pool do
if Keyword.fetch!(place_opts, :link), do: Process.link(child_pid)
{:cancel, {:replace, [child_pid]}, result}

:ignore ->
{:cancel, :ok, :ignore}

{:error, _reason} = result ->
{:cancel, :ok, result}
end
Expand Down
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),
Comment thread
probably-not marked this conversation as resolved.
Outdated
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