microsoft / durabletask-java

Java SDK for Durable Functions and the Durable Task Framework
MIT License
13 stars 7 forks source link

The purgeInstances API should take a timeout parameter #37

Closed cgillum closed 1 year ago

cgillum commented 2 years ago

Purging lots of orchestration data can take a very long time. We should add a timeout parameter that allows the caller to limit how much time is spent purging instance data. If the timeout expires, ideally, we should still return the number of instances purged, but possibly return an addition value in the PurgeResult class that indicates whether the operation was cancelled.