Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions serverless-fleets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ Switch to the `serverless-fleets` directory, which will be the root directory fo

To run this end-to-end sample, open a terminal, [login into your IBM Cloud account using the IBM Cloud CLI](https://cloud.ibm.com/docs/codeengine?topic=codeengine-install-cli).

Install the Code Engine CLI with the latest version and enable fleets:
Install the Code Engine CLI with the latest version:
```
CE_EXPERIMENTAL_FLEET=true ibmcloud plugin install code-engine -f --quiet
ibmcloud plugin install code-engine -f --quiet
```

If you don't have a fleet sandbox, choose one of the two methods to create one.
Expand Down Expand Up @@ -572,10 +572,10 @@ If you need to end your fleet's processing before it ran to completion, or to ge
Run the following command to delete a single worker:

```
ibmcloud ce exp fleet worker delete -n <worker-name>
ibmcloud ce fleet worker delete -n <worker-name>
```

Run the following command to delete all workers in your project:
```
ibmcloud ce exp fleet worker list | grep "fleet-" | awk '{print $1}' | xargs -L1 -I {} ibmcloud ce exp fleet worker delete --name {} -f
ibmcloud ce fleet worker list | grep "fleet-" | awk '{print $1}' | xargs -L1 -I {} ibmcloud ce fleet worker delete --name {} -f
```
6 changes: 6 additions & 0 deletions serverless-fleets/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ function check_prerequisites {
print_error "'jq' tool is not installed"
exit 1
fi

# Ensure that uuidgen tool is installed
if ! command -v uuidgen &>/dev/null; then
print_error "'uuidgen' tool is not installed"
exit 1
fi
}

# ==============================
Expand Down
Loading