Update coarse-parallel-processing-work-queue.md (#12402)

the file needs to have permission to be executed with the command:

CMD /usr/bin/amqp-consume --url=$BROKER_URL -q $QUEUE -c 1 /worker.py

from Dockerfile https://kubernetes.io/examples/application/job/rabbitmq/Dockerfile
pull/12414/head
azarnyx 2019-01-28 21:25:39 +01:00 committed by Kubernetes Prow Robot
parent 6e557559fe
commit e05a3c7e32
1 changed files with 6 additions and 0 deletions

View File

@ -181,6 +181,12 @@ example program:
{{< codenew language="python" file="application/job/rabbitmq/worker.py" >}}
Give the script execution permission:
```shell
$ chmod +x worker.py
```
Now, build an image. If you are working in the source
tree, then change directory to `examples/job/work-queue-1`.
Otherwise, make a temporary directory, change to it,