Skip to content

Commit 4b36ea7

Browse files
authored
Update worker-cli-commands.md
1 parent ff5220a commit 4b36ea7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

user/enterprise/worker-cli-commands.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following section explains how to stop and start the worker service with Ubu
1010

1111
### With Ubuntu 16.04
1212

13-
The Travis CI Worker is installed as an systemd service. The following commands can be used to check the status and start/stop the service:
13+
The Travis CI Worker is installed as a systemd service. The following commands can be used to check the status and start/stop the service:
1414

1515
```sh
1616
$ sudo systemctl status travis-worker
@@ -49,16 +49,16 @@ When the worker is stopped with `sudo stop travis-worker`, it is shut
4949
down with a `KILL` signal. This stops all currently running build jobs
5050
and will enqueue them when the worker starts again. If you'd like to
5151
wait until some or all jobs are being worked off successfully, you can
52-
issue a `SIGINT` instead. This together with a `sleep` ensures that
52+
issue a `SIGINT` instead. This, together with a `sleep`, ensures that
5353
either some or all active jobs can finish (depending on how
54-
long your queue is). After `sleep` finished, the worker has to be
54+
long your queue is). After `sleep` is finished, the worker has to be
5555
shut down via `sudo stop travis-worker`.
5656

5757
## Worker Stop and Start Service Example
5858

5959
The travis-worker behaves differently based on the signals it receives. For instance, a `SIGINT` drains the queue, it gives travis-worker enough time to work off all jobs which are still in progress, but it doesn't accept any new ones.
6060

61-
`SIGKILL` on the other hand shuts down travis-worker immediately and cancels all currently running jobs. If you start the worker again afterwards, all previously enqueued and running jobs are re-queued again so they'll be worked off as usual.
61+
`SIGKILL`, on the other hand, shuts down travis-worker immediately and cancels all currently running jobs. If you start the worker again afterward, all previously enqueued, and running jobs are re-queued again, so they'll be worked off as usual.
6262

6363
### With Ubuntu 16.04
6464

@@ -86,7 +86,7 @@ sudo docker kill -s SIGINT travis-worker
8686

8787
In this example, a `sleep 60` is used to allow jobs to complete before the
8888
worker is stopped. The actual value depends on how long your current job queue
89-
is and how long it takes in average for a job to finish, so you may wish to
89+
is and how long it takes on average for a job to finish, so you may wish to
9090
adjust accordingly.
9191

9292
```sh
@@ -102,7 +102,7 @@ $ sudo stop travis-worker
102102
## Start the Worker Debug Containers
103103

104104
In order to start a build container on a Travis CI Enterprise Worker
105-
host you can do the following:
105+
host, you can do the following:
106106

107107
```sh
108108
# start a container and grab the port

0 commit comments

Comments
 (0)