Data export and retention over what modules contribute: :data-export
exporters and :retention policies (wagoe.platform.ports.privacy).
Retention is off until :wagoe/privacy :retention names a policy, and then
runs as the recurring job retention-job-type on :wagoe/jobs:
:wagoe/privacy {:retention {:user/audit-log {:retain "P2Y"}} :retention-schedule {:cron "0 3 * * *" :zone "UTC"}}
Data export and retention over what modules contribute: `:data-export`
exporters and `:retention` policies (`wagoe.platform.ports.privacy`).
Retention is off until `:wagoe/privacy :retention` names a policy, and then
runs as the recurring job `retention-job-type` on `:wagoe/jobs`:
:wagoe/privacy {:retention {:user/audit-log {:retain "P2Y"}}
:retention-schedule {:cron "0 3 * * *" :zone "UTC"}}(assert-runnable! plan policies)Throws :configuration-error when a policy in plan is not an
IRetentionPolicy: its module could not provide it, and every run would
fail.
Throws :configuration-error when a policy in `plan` is not an `IRetentionPolicy`: its module could not provide it, and every run would fail.
(create-data-export exporters)An IDataExport over exporters, {exporter-id IDataExporter}.
An `IDataExport` over `exporters`, {exporter-id IDataExporter}.
(retention-job-handler plan policies)The job handler for retention-job-type. Fails the job when a policy
failed, so it is retried; deleting what is already gone is harmless.
The job handler for `retention-job-type`. Fails the job when a policy failed, so it is retried; deleting what is already gone is harmless.
(retention-plan! configured contributed)The policies configured names, each with its period. Throws
:configuration-error when one is unknown or its period malformed.
The policies `configured` names, each with its period. Throws :configuration-error when one is unknown or its period malformed.
(run-retention! plan policies now)Run each policy in plan against policies at now. One failing policy
does not stop the rest. Returns {:deleted {id n} :failed {id message}}.
Run each policy in `plan` against `policies` at `now`. One failing policy
does not stop the rest. Returns {:deleted {id n} :failed {id message}}.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |