Skip to main content

Module crawl_policy

Module crawl_policy 

Source
Expand description

The plan rules for a manual crawl, shared by the Run crawl button and the API’s run_crawl so both queue in the same lane and refuse with the same words.

Constants§

FREE_MANUAL_PRIORITY
Priority lane for a manual crawl on Free (spec section 10).
PAID_MANUAL_PRIORITY
Priority lane for a manual crawl on a paid plan (spec section 10).

Functions§

allowance_phrase
1 manual crawl a week, 3 manual crawls a day; None when unlimited.
limit_message
The refusal when the allowance is used up, e.g. “Your Free plan includes 1 manual crawl a week. The next one is available in 3 days.”
manual_priority
The queue lane for a manual crawl on plan.
plan_name
until
in a minute, in 12 minutes, in 5 hours, in 3 days (rounded up below a day, to the nearest day above).