Enums
enums
¶
Type aliases for Scrape.do Async API Literal Parameters
Defines literal types specific to the Async API surface
Shared Literals
HttpMethod, DeviceType, WaitUntilType, OutputType are
re-used from scrape_do.models.enums since
the Async API runs the same engine as the synchronous gateway
Job Lifecycle
Job Listing
JobStatus
module-attribute
¶
Lifecycle state of an Async API job / task
Mapping
queuing= Job is being preparedqueued= Job is in queue waiting to be processedpending= Job is currently being processedrotating= Job is retrying with different proxiessuccess= Job completed successfully (TERMINAL)error= Job failed (TERMINAL)canceled= Job was canceled by the user (TERMINAL)
TERMINAL_STATUSES
module-attribute
¶
Set of JobStatus values
the server treats as terminal
Usage
Used by the polling helpers to decide when to stop polling and fetch task details
JobListQuerySortType
module-attribute
¶
Defines the values accepted by the sort argument of the
JobListQueryParameters model
Mapping
start_time_desc= Most recently started jobs appear at the topstart_time_asc= Jobs that started first (oldest jobs) appear at the top