Skip to content

porestore.job

Persistent remote jobs and explicit result retrieval.

Result dataclass

Outputs and metadata exactly as returned by the public API, including units.

job_id: str instance-attribute

metrics: dict instance-attribute

network property

The last explicitly downloaded network, or None; reading performs no I/O.

network_metadata property

Stored units and artifact version from the last explicit network download.

solution property

download_network(*, refresh: bool = False)

Download a NumPy network dictionary in its stored units; OpenPNM is optional.

Job

An accepted remote job. Reading properties performs no network requests.

client = client instance-attribute

idempotency_key = idempotency_key instance-attribute

reused = reused instance-attribute

id property

status property

image_id property

analysis_type property

metadata property

from_id(job_id, *, client=None) classmethod

refresh() -> Job

wait(*, timeout: float = 600.0, poll_interval: float = 2.0) -> Job

get_result(*, wait: bool = False, timeout: float = 600.0, poll_interval: float = 2.0, refresh: bool = False) -> Result

Retrieve outputs, using persistent cache unless refresh=True; waiting is opt-in.