[ 
https://issues.apache.org/jira/browse/FLINK-21308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17362943#comment-17362943
 ] 

Igal Shilman commented on FLINK-21308:
--------------------------------------

Hello [~stephanpelikan],

I'm working on adding support for deleting timers, following the principles 
discussed above.
I'm wondering if the following SDK changes will work for your use case 
https://github.com/igalshilman/flink-statefun/blob/support-unsend/statefun-sdk-embedded/src/main/java/org/apache/flink/statefun/sdk/Context.java#L90,L98



> Cancel "sendAfter"
> ------------------
>
>                 Key: FLINK-21308
>                 URL: https://issues.apache.org/jira/browse/FLINK-21308
>             Project: Flink
>          Issue Type: New Feature
>          Components: Stateful Functions
>            Reporter: Stephan Pelikan
>            Priority: Major
>              Labels: auto-deprioritized-major, stale-major
>             Fix For: statefun-3.1.0
>
>
> As a user I want to cancel delayed sent messages not needed any more to keep 
> state clean.
> Use case:
> {quote}My use-case is processing business events of customers. Those events 
> are triggered by ourself or by the customer depending of what's the current 
> state of the ongoing customer's business use-case. We need to monitor 
> delayed/missing business events which belong to previous events. For example: 
> the customer has to confirm something we did. Depending on what it is the 
> confirmation has to be within hours, days or even months. If there is a delay 
> we need to know. But if the customer confirms in time we want to cleanup to 
> keep the state small.
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to