hpcflow.sdk.monitoring.scheduler_cache.SchedulerSnapshot#

class hpcflow.sdk.monitoring.scheduler_cache.SchedulerSnapshot(queried_at, references, states, error=None, cached=False)#

Bases: object

Queue states, covered references, and the actual query time, including failures.

References not covered by a snapshot are unknown, rather than evidence that newly submitted jobs have finished. Cache hits never advance queried_at.

Methods

Attributes

queried_at

references

states

error

cached

observed_at

Return the scheduler observation time in the registry timestamp format.

Parameters:
cached: bool#
error: str | None#
property observed_at: str#

Return the scheduler observation time in the registry timestamp format.

queried_at: float#
references: set[str]#
states: dict[str, JobObservation]#