solution
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Scale the worker to zero; accepted jobs stay durable in the outbox/queue.
|
||||
set -eu
|
||||
stack=${STACK_NAME:-lab5}
|
||||
docker service scale "${stack}_worker=0" >/dev/null
|
||||
printf 'worker scaled to 0\n'
|
||||
Reference in New Issue
Block a user