Skip to content

Commit

Permalink
Added UP command to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
F1bonacc1 committed Nov 21, 2022
1 parent 3e46cd6 commit dec2692
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ process2:
depends_on:
process3:
condition: process_completed_successfully
process3:
condition: process_completed_successfully
process4:
condition: process_completed_successfully
```

There are 4 condition types that cab be used in process dependencies:
Expand All @@ -185,6 +185,51 @@ There are 4 condition types that cab be used in process dependencies:
* `process_healthy` - is the type for waiting until a process is healthy
* `process_started` - is the type for waiting until a process has started (default)

##### ✅ Run only specific processes

For testing and debugging purposes, especially when your `process-compose.yaml` file contains many processes, you might want to specify only a subset of processes to run. For example:

```yaml
#process-compose.yaml
process1:
command: "echo 'Hi from Process1'"
depends_on:
process2:
condition: process_completed_successfully
process2:
command: "echo 'Hi from Process2'"
process3:
command: "echo 'Hi from Process3'"
```

```bash
process-compose up # will run all the processes - equal to 'process-compose'
#output:
#Hi from Process3
#Hi from Process2
#Hi from Process1
```

```bash
process-compose up process1 processe3 # will run 'process1', 'process3' and all of their dependencies - 'process2'
#output:
#Hi from Process3
#Hi from Process2
#Hi from Process1
```

```bash
process-compose up process1 processe3 --no-deps # will run 'process1', 'process3' without any dependencies
#output:
#Hi from Process3
#Hi from Process1
```



##### ✅ Termination Parameters

```yaml
Expand Down

0 comments on commit dec2692

Please sign in to comment.