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

[Docs]: How do I stop/delete a function which is building through CLI? #3176

Open
1 task done
tanay-kondapally opened this issue Feb 22, 2024 · 2 comments
Open
1 task done
Assignees

Comments

@tanay-kondapally
Copy link

Nuclio version checks

  • I have checked that the issue still exists on the latest versions of the docs here

Location of the documentation

https://github.com/nuclio/nuclio/tree/development/docs/tasks

Documentation problem

There seems to be no described way to stop a building function. I am unable to do the same via the dashboard as I am doing this using a GCP VM and using an external host IP.

Suggested fix for documentation

Please give me a command/argument through which I can force stop/delete or kill a building function as I am unable to do a new serverless deployment if the previous one failed.

@TomerShor TomerShor self-assigned this Feb 22, 2024
@TomerShor
Copy link
Contributor

Hey @tanay-kondapally,

The only way to stop a building function is to delete it.
This can be done via the UI, from the project functions screen, and we have also recently added an option to delete a building function using nuctl (our CLI) with the following command:

$ nuctl -n <namespace> delete function <function-name> --force

Notes:

  • The --force flag will only work for kubernetes deployments, and not for docker deployments.
  • This flag is available only for Nuclio >= 1.12.12

We will add documentation on the different nuctl commands and option in the near future.

@tanay-kondapally
Copy link
Author

tanay-kondapally commented Feb 23, 2024

Thanks @TomerShor
I need more help on this although.

I can't seem to stop a function that is being provisioned in a docker deployment.
That is rendering me unable to deploy another serverless function as previous one failed.
And since --force flag doesn't work with docker deployment, I am unable to delete the building function which is stuck on building status.

How do I stop that via CLI? Or is there anyway to access UI in case of external host IP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants