Skip to content

Commit

Permalink
limit time cutycapt can try to capture a page
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Mar 3, 2025
1 parent 0486ba8 commit afc48a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mix/tasks/velo.links.mirror.ex
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ defmodule Mix.Tasks.Velo.Links.Mirror do
log(file, "#{Path.basename(file)}.pdf")

{out, exit_code} =
System.cmd("cutycapt", [
System.cmd("timeout", [
"120s",
"cutycapt",
"--url=#{url}",
"--out=#{file}.pdf",
"--delay=1000",
Expand Down

0 comments on commit afc48a8

Please sign in to comment.