file_tracker#

class abstract_tracker.trackers.file_tracker.FileTracker(id: Union[str, int], status: int, attempts: int, create_time: datetime, update_time: datetime, lock: Optional[str], lock_time: datetime, lock_expire_time: datetime, data: dict, errors: dict)[source]#

File tracker uses a local json file as the backend.

classmethod get_path(id: Union[str, int]) Path[source]#

The path of the tracker file.

property path: Path#

The path of the tracker file.

classmethod load(id: Union[str, int], **kwargs) Optional[T_TRACKER][source]#

Create a tracker object by loading from the backend. If not found, return None.

dump(**kwargs)[source]#

Write the tracker object to the backend.