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/Dockerfilepull/12414/head
parent
6e557559fe
commit
e05a3c7e32
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue