numerous.sdk.connect.job_state module#
Contains the implementation of the JobState class, for managing job execution state.
- class numerous.sdk.connect.job_state.JobState(spm_client, identity, execution_id)#
Bases:
objectJobState enables jobs to store state remotely, and cache it locally. This is useful for keeping track of values across hibernations, or if an error has restarted the job.
- commit()#
Commit the state to the server. This is useful for batching state updates.
- Return type:
None
- set(key, value, commit=True)#
Set the state value keyed by
keyto the valuevaluein theJobState, and optionally commit the state to the server.If
commitis True the new state resulting from setting the value, will be comitted to the server.