Scroll to navigation

PMIX_PERSISTENCE_T(5) OpenPMIx PMIX_PERSISTENCE_T(5)

pmix_persistence_t — Defines the retention policy for data published by a process

SYNTAX

C Syntax

#include <pmix_common.h>
typedef uint8_t pmix_persistence_t;
#define PMIX_PERSIST_INDEF          0   // retain until specifically deleted
#define PMIX_PERSIST_FIRST_READ     1   // delete upon first access
#define PMIX_PERSIST_PROC           2   // retain until publishing process terminates
#define PMIX_PERSIST_APP            3   // retain until application terminates
#define PMIX_PERSIST_SESSION        4   // retain until session/allocation terminates
#define PMIX_PERSIST_NSPACE         5   // retain until publishing namespace terminates
#define PMIX_PERSIST_INVALID   UINT8_MAX


Python Syntax

None

DESCRIPTION

The pmix_persistence_t type is used to specify how long published data is to be retained by the datastore before being automatically deleted. It is passed as the PMIX_PERSISTENCE attribute to PMIx_Publish(3) <#man3-pmix-publish>. Defined values include:

Note:

The numeric values are identifiers and not an ordering. They are assigned in the order the policies were defined, so a larger value does not mean a longer retention — PMIX_PERSIST_INDEF is zero and outlives every other policy, and PMIX_PERSIST_NSPACE was added after PMIX_PERSIST_SESSION while ending before it. Compare persistence values for equality, never for magnitude.


Persistence Values

NAME VALUE DESCRIPTION
PMIX_PERSIST_INDEF 0 Retain the data until it is specifically deleted (e.g., via PMIx_Unpublish(3) <#man3-pmix-unpublish>).
PMIX_PERSIST_FIRST_READ 1 Delete the data upon its first access.
PMIX_PERSIST_PROC 2 Retain the data until the publishing process terminates.
PMIX_PERSIST_APP 3 Retain the data until the application terminates.
PMIX_PERSIST_SESSION 4 Retain the data until the session/allocation terminates.
PMIX_PERSIST_NSPACE 5 Retain the data until the publishing process’s namespace terminates — that is, until every application in that job has ended.
PMIX_PERSIST_INVALID UINT8_MAX An invalid persistence value, used to indicate that no valid persistence policy has been set.

ERRORS

PMIx errno values are defined in pmix_common.h.

See also:

PMIx_Publish(3) <#man3-pmix-publish>, PMIx_Lookup(3) <#man3-pmix-lookup>, PMIx_Unpublish(3) <#man3-pmix-unpublish>, pmix_data_range_t(5) <#man5-pmix-data-range-t>


Copyright

2014-2026, OpenPMIx Community

November 5, 2026