Skip to content

Appendix H: Glossary

Martin Olveyra edited this page Oct 21, 2026 · 2 revisions

Previous Chapter: Appendix G: Issuer Classes


Introduction

The terms used throughout this wiki, with a short definition and a link to where each one is explained. A few words have more than one meaning depending on the context — slot, batch, consumer, source —: each meaning is listed separately.

Terms

Term Meaning See
Acquire A manager adopting at start the jobs left running by a previous instance, matched by name instead of by flow id (acquire_all_jobs). Needed by managers scheduled automatically, which never resume. Resuming and acquiring
Agent (independent agent) A workflow component scheduled on its own, that coordinates with the others only through storage and can be restarted at any moment without losing work. The principles
At-least-once Processing semantics where an input can be processed more than once after a restart, but is never lost. Duplicates are absorbed downstream. Where duplicates come from
Back-pressure A stage slowing down because the queue after it is too long, typically a crawl manager lowering its running jobs. Back-pressure
Balancer An issuer that regroups items into batches suited for the next stage (per source, per filter, sized by cost). Balancers
Batch (frontier) The group of requests in which the HCF stores and returns the contents of a slot; read and deleted as a unit. The Hubstorage Crawl Frontier
Batch (file) An output file of an issuer: gzipped JSON lines with up to default_filesize items, named by the batch naming standard. Batches, slots and filenames
Branch seed A seed that leads to listings, from where more seeds are discovered (a tag, a category, an author). Branch seeds and leaf seeds
Canonical name The name of a source, shared by all the spiders of a site (the spider canonical_name attribute). Used in slot names, item sources and filenames. Slot naming
Claim (claim by move) Taking a unit of work from a file queue by moving its file into a processing folder, so no one else takes it. File queues
Consume-once tag A job tag that marks a job as processed by some script (e.g. CONSUMED=True), so that it is selected with lacks_tag only once. Consume-once tags
Consumer (issuer) The first issuer of the post-crawl chain: it reads the finished spider jobs, writes new seeds to the frontier and partitions the items. A first issuer
Consumer (frontier, legacy) In the Frontera approach, a spider that reads its requests from the frontier. Managing HCF with Frontera
Crawl manager A workflow manager that schedules spider jobs, typically from a generator of arguments. Crawl Managers
Deduplicator A long lived issuer that performs persistent deduplication of one slot, reloading the ids of its outputs on start. Deduplicators
Deferred job A job yielded by a generator crawl manager but put aside by can_schedule_job_with_params(), to be scheduled later. Deferring jobs
Delivery The terminal stage, writing the files the customer receives. An issuer configured for that purpose. Delivery is a configuration
File queue A set of folders where each folder is a state of the units of work (requests, processing, completed) and a move is a transition. File queues
Fingerprint (fp) The identifier of a request in the HCF. A slot discards a fingerprint it has already seen. In seed based workflows, the seed itself. The Hubstorage Crawl Frontier
Flow id The identifier of an instance of a workflow, carried by every job of the instance as the FLOW_ID tag. Workflow identity
Frontier A store of pending work, filled and consumed progressively by different processes. The HCF, or a folder of batch files. Managing Hubstorage Crawl Frontiers
Graph manager A workflow manager that runs a graph of tasks with dependencies. Fits short, strictly ordered sequences. Graph Managers
HCF Hubstorage Crawl Frontier, the crawl frontier native to ScrapyCloud. The Hubstorage Crawl Frontier
Input source Where an issuer item was read from: a job key or a file name (input_source field). Appendix G
Issuer A script that reads a massive input (jobs or batch files), processes the items and writes batch files. Issuers
Keep-alive scheduler A stateless periodic script that starts every component that should be running and isn't. The keep-alive scheduler
Leaf seed A seed that leads to a target page and to nothing else (typically the id of an item). Branch seeds and leaf seeds
Loop mode Running a loop script repeatedly, with the given seconds between loops (loop_mode, --loop-mode). One-shot and loop scripts
Name The name of a script within a workflow, carried as the NAME tag, and as PARENT_NAME by the jobs it schedules. Workflow identity
Owned jobs The jobs a workflow manager considers its children: by default, the ones with its flow id and its name as PARENT_NAME. Owned jobs
Reducer An issuer that keeps a single version of each entity among several collected versions. Reducers
Resume A manager started with the flow id of a previous finished instance continuing its work. Happens with cloned jobs and --flow-id. Resuming and acquiring
Run to completion A component that processes the available work and stops (close_on_no_inputs), started again periodically. Continuous and run to completion components
Seed A starting point from where a spider discovers its target pages: a tag, a category, a keyword, an id. Stored in the frontier instead of urls. Seeds instead of urls
Single writer rule Only one process at a time may write to an HCF slot. In the independent agents architecture, every slot has exactly one writer. One writer per slot
Slot (frontier) A named queue within a frontier, read and written independently of the others. The Hubstorage Crawl Frontier
Slot (issuer output) A partition of the output of an issuer, selected by a hash of the item id (parallel_outputs), and shown as the filename prefix. Batches, slots and filenames
Source The canonical name of the spider that produced an item (source field), used to separate outputs and stats per site. A first issuer
Storage contract What a stage depends on from another one: where it reads (a slot, a folder and its filename standard, a tag), and nothing else. The principles
Target (issuer) The positional argument of a job input issuer selecting the spiders it reads: spider:, canonical: or class:. A first issuer
Target project The project where a script schedules and queries jobs (--project-id), as opposed to the one where it runs. Target project and own project

Next Chapter: Appendix I: Credentials Setup

Clone this wiki locally