fugue2 kill

Usage

fugue2 kill <ALIAS or FID> [flags]

Arguments

<ALIAS or FID>
Alias or FID of the process to kill

Options

Global options are detailed here.

--dry-run
Kill a composition in dry-run mode.
-h | --help
Show help text for kill.
-y | --yes
Suppress confirmation dialogs.

Definition

The kill command ends automatic maintenance and enforcement of the resources that represent a single running instance of a composition, or process, and then it destroys those resources (and only those resources).

Note

In Fugue Platform 2.0 Beta, a suspended process must be resumed before it can be killed.

The length of time it takes Fugue to fully kill a process depends on the number of resources that the process created. Fugue deletes the resources in an order that satisfies their dependencies.

To check the status of a process killing operation, use the status command. If the FID is no longer listed in the status table, then kill has successfully completed.

The kill command does not stop the Fugue Conductor or destroy its infrastructure. If you want to terminate your Fugue Conductor, see the uninstall command.

Examples

Killing a process

To terminate a process and delete its resources, execute kill:

fugue2 kill myProcess

The Fugue CLI asks you to confirm that you want to kill the specified process:

[ fugue kill ] Killing process myProcess

[ WARN ] Are you sure you want to continue killing process myProcess? [y/N] y

Upon confirmation, the CLI sends a request to the Conductor asking it to kill the process. When the request is accepted, the CLI displays a success message and the FID of the process being killed:

Requesting the Conductor to kill process myProcess ...

[ DONE ] Process myProcess is being killed.

{
  "fid": "c8161b95-d738-4a5c-815a-19ea95172899"
}

To confirm that the process has been terminated, execute fugue2 status. If the FID is no longer listed in the status report, the kill has successfully completed.