hpcflow.sdk.persistence.store_resource.StoreResource#

class hpcflow.sdk.persistence.store_resource.StoreResource(app, name)#

Bases: ABC

Class to represent a persistent resource within which store data lives.

A PersistentStore maps workflow data across zero or more store resources. Updates to persistent workflow data that live in the same store resource are performed together.

Parameters:
  • app (App) – The main application context.

  • name (str) – The store name.

Methods

close

Close the store for a particular action.

open

Open the store.

Attributes

logger

The logger.

close(action)#

Close the store for a particular action.

Parameters:

action (str) – What we are closing the store for. Should match a previous call to close().

property logger: Logger#

The logger.

open(action)#

Open the store.

Parameters:

action (str) – What we are opening the store for; typically either read or update.