I've just found wkhtmltopdf on my linux machine was working for the last 28 minutes eating 99% of CPU and effectively killing the server. Can I set some kind of timeout so it it can't create a PDF within 30 seconds it dies?
You'd have to do that outside of wkhtmltopdf.
Closing as the answer was provided.
Is something like this viable ?
xvfb-run -a -s "-screen 0 640x480x16" \
timeout --preserve-status 40 -k 60 \
wkhtmltopdf http://www.qwamci.com/ /tmp/qwam.pdf
Most helpful comment
Is something like this viable ?