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

update-eventing-function for Eventing CLI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0.0
    • 6.5.1
    • documentation, eventing
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      In the UI, We can pause-edit-resume a function.
      On the CLI, We could pause-import-resume a function.

       

      However, "import" seems to overwrite a function and lose its place in the source bucket. This would forces to "resume-from-now" and miss some data or go back to the vert beginning.
      There doesn't seem to be an "update-eventing-function" on the cli which matches the "edit Javascript" on the UI.

      another issue we are having is not knowing then the eventing function has completed its action. Since the commands seem to be asynchronous, we cannot script the commands

       

      undeploy func1

      delete func1

      import func1

       

      The import fails, since we don't know when the function is deleted. We need something like a --wait flag, which would make the execution synchronous.

       

      Attachments

        Issue Links

          Activity

            People

              vinayaka.kamath Vinayaka Kamath (Inactive)
              karthik.sekar Karthik B Sekar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty