Changeset View
Changeset View
Standalone View
Standalone View
swh/web/common/typing.py
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | class SaveOriginRequestInfo(TypedDict): | ||||
save_request_status: str | save_request_status: str | ||||
"""Status of the request""" | """Status of the request""" | ||||
loading_task_id: Optional[int] | loading_task_id: Optional[int] | ||||
"""Identifier of the loading task in the scheduler if scheduled""" | """Identifier of the loading task in the scheduler if scheduled""" | ||||
visit_date: Optional[str] | visit_date: Optional[str] | ||||
"""End of the visit if terminated""" | """End of the visit if terminated""" | ||||
save_task_status: str | save_task_status: str | ||||
"""Status of the scheduled task""" | """Status of the scheduled task""" | ||||
class OriginExistenceCheckInfo(TypedDict): | |||||
origin_url: str | |||||
"""Origin to check""" | |||||
exists: bool | |||||
"""Does the url exist?""" | |||||
content_length: Optional[int] | |||||
"""content length of the artifact""" | |||||
last_modified: Optional[str] | |||||
"""Last modification time reported by the server""" |