Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-28554

Ability to Clear Timers

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 5.5.0
    • Neo.next
    • eventing
    • None

    Description

      As of now, the only possible way to clear the TIMERs created are via the checkboxes shown at the deployment. If the developer/administrator misses this action, then there is no alternate/fallback scheme to clear the timers; there is no REST endpoint. 

      Also, some business flows might require to cancel timers based on certain conditions.

      It should be possible to clear timers based on:

      • Timer Type - cronTimer or docTimer
      • Doc ID(only for docTimers)
      • FunctionName
      • Timestamp

       

      P0: Ability to Clean Timers for a given time window 

      • The time window mentioned is the time window in which the timers had to be executed, and not the doc's mutation time.
      • Ability to be exposed via REST-API/CLI and UI.
        • Ability to be exposed only when the Function is in Paused state.
        • In the UI, the 'Clear Timers' button will be shown only when the Function is paused. Do not show the button otherwise. Clicking the button should prompt a dialog that shows the time-window in which the timers have to be cleared.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            This will in part be mitigated by ability to clear timers at undeploy and also cancel timer functionality

            siri Sriram Melkote (Inactive) added a comment - This will in part be mitigated by ability to clear timers at undeploy and also cancel timer functionality

            Gautham, is the REST API part of MH plan?

            siri Sriram Melkote (Inactive) added a comment - Gautham, is the REST API part of MH plan?
            Gautham.Banasandra Gautham Banasandra (Inactive) added a comment - - edited No Sriram Melkote
            jeelan.poola Jeelan Poola added a comment -

            Have not come across this use case till now. Proposing to move to CheshireCat.Next to keep focus on collections.

            jeelan.poola Jeelan Poola added a comment - Have not come across this use case till now. Proposing to move to CheshireCat.Next to keep focus on collections.

            People

              srinivasan.raman Srinivasan Raman
              venkatraman.subramanian Venkatraman Subramanian (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty