High-level FerricFlow command helpers.
Functions build the same native command arguments as the Python SDK while keeping defaults simple: create and terminal commands return acknowledgements, while claim returns compact jobs with attributes.
Summary
Functions
Returns the typed policy snapshot and its monotonic generation.
Deep-patches a Flow type policy and returns its typed snapshot.
Functions
@spec policy_get(pid(), binary(), keyword()) :: FerricStore.Flow.PolicySnapshot.t() | {:error, FerricStore.Error.t()}
Returns the typed policy snapshot and its monotonic generation.
@spec policy_set(pid(), binary(), keyword()) :: FerricStore.Flow.PolicySnapshot.t() | {:error, FerricStore.Error.t() | FerricStore.Flow.StalePolicyGenerationError.t()}
Deep-patches a Flow type policy and returns its typed snapshot.
Pass replace: true for full replacement. Pass expected_generation from a
prior FerricStore.Flow.PolicySnapshot for compare-and-swap. CAS mutations
are never retried automatically.