Graceful stop, second pass (owner rule 2026-11-12): margin max(45 s, 10 % of the run's timeout) (the older 30-90 s
rule is kept when larger); without ACTOR_TIMEOUT_AT / APIFY_TIMEOUT_AT the deadline is run start + the run's timeout
(run options read from the Apify API, else the Actor default 3600 s). Site preparation (robots.txt, sitemaps, probes)
is bounded by the time left (sites not prepared in time: start URLs in FAILED_INPUTS TIME_LIMIT); the crawl is
abandoned at most a short grace (5-30 s) after the stop even if it ignores it; history, dataset read-back and the PDF
are bounded by the time left (PDF given up 15 s before the timeout). Output and billing unchanged.
Graceful stop before the timeout (src/deadline.ts): ACTOR_TIMEOUT_AT / APIFY_TIMEOUT_AT is read; no new page
starts 30 s before it (+5 s per 200 planned pages, max 90 s), pages in progress are abandoned (not pushed, not
charged), the crawl gets 5 s to wind down, then REPORT / ISSUES / RUN_SUMMARY / FAILED_INPUTS are written for the
pages done and the run ends SUCCEEDED. Not audited pages: FAILED_INPUTS code TIME_LIMIT. RUN_SUMMARY:
stopReason (timeLimit / aborted / chargeLimit / null) and timeLimit. PDF skipped under 20 s left.
Heartbeat: "Still working (phase): N page(s) audited, M queued or in progress, X s elapsed, Y s before the run time
limit" every 30 s.
maxPages description gives the speed (about 600 pages per hour) and the timeout behaviour.