Skip to content

Commit

Permalink
deploy(compose): fix deployment with zero workers (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz authored Mar 14, 2024
1 parent e638576 commit c2c8b91
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ running [Faasm](https://github.com/faasm/faasm) cluster.
To install `faasmctl` you need a working `pip` (virtual-)environment. Then:

```bash
pip install faasmctl==0.33.0
pip install faasmctl==0.33.1
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion faasmctl/util/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def deploy_compose_cluster(faasm_checkout, workers, mount_source, ini_file):
# Deploy the compose cluster (0 workers <=> cli-only cluster)
cmd = [
"docker compose up -d",
"--scale worker={}".format(workers),
"--scale worker={}".format(workers) if int(workers) > 0 else "",
"worker" if int(workers) > 0 else "faasm-cli",
]
cmd = " ".join(cmd)
Expand Down
2 changes: 1 addition & 1 deletion faasmctl/util/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FAASMCTL_VERSION = "0.33.0"
FAASMCTL_VERSION = "0.33.1"


def get_version():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "faasmctl"
version = "0.33.0"
version = "0.33.1"
authors = [
{ name="Faasm Team", email="[email protected]" },
]
Expand Down

0 comments on commit c2c8b91

Please sign in to comment.