Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stop cmd for Pulsar Functions #25

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

wolfstudy
Copy link
Contributor

Signed-off-by: xiaolong.ran ranxiaolong716@gmail.com

Add stop cmd for Pulsar Functions, the output as follows:

USED FOR:
    This command is used for stopping function instance.

REQUIRED PERMISSION:
    This command requires super-user permissions.

EXAMPLES:
    #Stops function instance
    pulsarctl functions stop
	--tenant public
	--namespace default
	--name <the name of Pulsar Function>

    #Stops function instance with instance ID
    pulsarctl functions stop
	--tenant public
	--namespace default
	--name <the name of Pulsar Function>
	--instance-id 1

    #Stops function instance with FQFN
    pulsarctl functions stop
	--fqfn tenant/namespace/name [eg: public/default/ExampleFunctions]

OUTPUT:
    #normal output
    Stopped successfully

Usage: pulsarctl functions stop [flags]

Aliases: stop, stop

FunctionsConfig flags:
      --fqfn string          The Fully Qualified Function Name (FQFN) for the function
      --tenant string        The tenant of a Pulsar Function
      --namespace string     The namespace of a Pulsar Function
      --name string          The name of a Pulsar Function
      --instance-id string   The function instanceId (stop all instances if instance-id is not provided)

Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
@wolfstudy
Copy link
Contributor Author

@sijie @zymap PTAL

@wolfstudy wolfstudy merged commit b3721e6 into master Sep 3, 2019
@sijie sijie mentioned this pull request Sep 4, 2019
29 tasks
@wolfstudy wolfstudy deleted the xiaolong/stop-pulsar-functions branch October 11, 2019 06:25
tisonkun pushed a commit to tisonkun/pulsar-client-go that referenced this pull request Aug 15, 2023
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
tisonkun pushed a commit to apache/pulsar-client-go that referenced this pull request Aug 16, 2023
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants