You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user/enterprise/worker-cli-commands.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The following section explains how to stop and start the worker service with Ubu
10
10
11
11
### With Ubuntu 16.04
12
12
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:
14
14
15
15
```sh
16
16
$ sudo systemctl status travis-worker
@@ -49,16 +49,16 @@ When the worker is stopped with `sudo stop travis-worker`, it is shut
49
49
down with a `KILL` signal. This stops all currently running build jobs
50
50
and will enqueue them when the worker starts again. If you'd like to
51
51
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
53
53
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
55
55
shut down via `sudo stop travis-worker`.
56
56
57
57
## Worker Stop and Start Service Example
58
58
59
59
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.
60
60
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.
0 commit comments