dml_util.core.state#
State management for DaggerML runners.
This module provides classes for managing state across different runners. The state management system allows runners to store and retrieve state information, which is particularly useful for long-running or distributed tasks.
Classes
|
Local filesystem-based state management. |
|
Base class for state management. |
- class dml_util.core.state.LocalState(cache_key)[source]#
Bases:
State
Local filesystem-based state management.
This class implements state management using the local filesystem. State is stored as JSON files in a cache directory.
- Parameters:
cache_key (str) – Unique identifier for the state file.
- state_file#
Path to the JSON file where state is stored.
- Type:
Path
- cache_key: str#
- state_file: str#