Skip to content

Commit

Permalink
[Core-546] Expire event schedules and subscriptions (#12701)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: bf1228f5ed4bf926bffac20065827327cc9e7912
  • Loading branch information
stephencpope authored and Descartes Labs Build committed Oct 9, 2024
1 parent 7bb227c commit 526ae37
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ The documentation for the latest release can be found at [https://docs.descartes
Changelog
=========

## Unreleased

## Catalog

- EventSchedule now has a read-only `expires` attribute which indicates when the schedule will be expired and deleted.

## [3.2.0] - 2024-10-08

### General
Expand Down
9 changes: 8 additions & 1 deletion descarteslabs/core/catalog/event_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class EventSchedule(CatalogObject):
""",
)
start_datetime = Timestamp(
doc="""str or datetime, optional: Timestamp when the schedule should be expired and deleted.
doc="""str or datetime, optional: Timestamp when the schedule should begin.
*Filterable, sortable*.
"""
Expand All @@ -181,6 +181,13 @@ class EventSchedule(CatalogObject):
*Filterable, sortable*.
""",
)
expires = Timestamp(
doc="""str or datetime, readonly. Timestamp when the schedule will be expired and deleted.
Set automatically when the schedule is created or updated.
*Filterable, sortable*.
""",
)
owners = ListAttribute(
TypedAttribute(str),
doc="""list(str), optional: User, group, or organization IDs that own this event schedule.
Expand Down

0 comments on commit 526ae37

Please sign in to comment.