TaskStateStoreSetOpts

interface TaskStateStoreSetOpts { retention?: number | typeof NEVER_EXPIRE; }

Source: client-types.ts:64

Options for a task state store write.


Properties

retention: number | typeof NEVER_EXPIRE

How long to keep the key, in seconds, counted from the write; 0 expires it immediately.

Omitting it follows the deployment's [state_store] default_retention_days, which the coordinator passes to the runtime. Pass NEVER_EXPIRE to store the key with no expiry regardless of that default.