Skip to content

Commit

Permalink
Added support for compact_and_delete cleanup policy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Atabayev committed May 27, 2024
1 parent e4cfda1 commit 4027f96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions clin/models/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class Cleanup:
class Policy(str, Enum):
DELETE = "delete"
COMPACT = "compact"
COMPACT_AND_DELETE = "compact_and_delete"

def __str__(self) -> str:
return str(self.value)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/single/event-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
- important_key
partitionCount: 2
cleanup:
policy: compact # compact | delete
policy: compact # compact | delete | compact_and_delete
retentionTimeDays: 4 # days before delete for corresponding policy
annotations: # set of key-value pairs to define event type annotations
"foo": "bar"
Expand Down

0 comments on commit 4027f96

Please sign in to comment.