fugue2 suspend

Usage

fugue2 suspend <ALIAS or FID> [flags]

Arguments

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

Options

Global options are detailed here.

-h | --help
Show help text for suspend.
-y | --yes
Suppress confirmation dialogs.

Definition

The suspend command pauses automatic enforcement and maintenance of a running process. When a process is suspended, Fugue temporarily stops issuing jobs and actively managing the process’s resources. A job is when the Conductor reviews and acts on process data.

In a status report, a suspended process’s state is shown as "process_status": "suspended".

Note

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

Examples

Suspending a running process

To pause Fugue from carrying out work on a process, execute suspend:

fugue2 suspend myProcess

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

[ fugue suspend ] Suspending process myProcess.

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

Upon confirmation, the CLI sends a request to the Conductor asking it to suspend the process. When the request is accepted, the CLI displays a success message and updated status details:

Requesting the Conductor to suspend process myProcess ...

[ DONE ] Process myProcess suspended.

{
  "alias": "myProcess",
  "api_version": 1,
  "created": "2018-12-18T05:34:24.000Z",
  "current_operation": "nothing",
  "enforcement": true,
  "fid": "c8161b95-d738-4a5c-815a-19ea95172899",
  "job_status": "succeeded",
  "last_error": {},
  "locked": false,
  "next_operation": "nothing",
  "notifications": {
    "drift": "on",
    "enforcement": "on"
  },
  "principal": "root",
  "process_status": "suspended",
  "provider": "azure",
  "scheduled": "2018-12-18T07:08:56.000Z",
  "updated": "2018-12-18T07:09:00.857Z",
  "user": "root"
}