Add weights and move files under Tasks > Jobs. (#8623)

This commit is contained in:
Steve Perry
2018-05-18 12:51:50 -07:00
committed by k8s-ci-robot
parent b8c5652751
commit 73589267a1
5 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
--- ---
title: "Run Jobs" title: "Run Jobs"
weight: 60 weight: 50
--- ---
@@ -3,6 +3,7 @@ title: Running automated tasks with cron jobs
reviewers: reviewers:
- chenopis - chenopis
content_template: templates/task content_template: templates/task
weight: 10
--- ---
{{% capture overview %}} {{% capture overview %}}
@@ -1,6 +1,6 @@
--- ---
title: Coarse Parallel Processing Using a Work Queue title: Coarse Parallel Processing Using a Work Queue
toc_hide: true weight: 30
--- ---
{{< toc >}} {{< toc >}}
@@ -167,13 +167,13 @@ We will use the `amqp-consume` utility to read the message
from the queue and run our actual program. Here is a very simple from the queue and run our actual program. Here is a very simple
example program: example program:
{{< code language="python" file="worker.py" >}} {{< code language="python" file="coarse-parallel-processing-work-queue/worker.py" >}}
Now, build an image. If you are working in the source Now, build an image. If you are working in the source
tree, then change directory to `examples/job/work-queue-1`. tree, then change directory to `examples/job/work-queue-1`.
Otherwise, make a temporary directory, change to it, Otherwise, make a temporary directory, change to it,
download the [Dockerfile](Dockerfile?raw=true), download the [Dockerfile](coarse-parallel-processing-work-queue/Dockerfile?raw=true),
and [worker.py](worker.py?raw=true). In either case, and [worker.py](coarse-parallel-processing-work-queue/worker.py?raw=true). In either case,
build the image with this command: build the image with this command:
```shell ```shell
@@ -1,6 +1,6 @@
--- ---
title: Fine Parallel Processing Using a Work Queue title: Fine Parallel Processing Using a Work Queue
toc_hide: true weight: 40
--- ---
{{< toc >}} {{< toc >}}
@@ -111,11 +111,11 @@ called rediswq.py ([Download](rediswq.py?raw=true)).
The "worker" program in each Pod of the Job uses the work queue The "worker" program in each Pod of the Job uses the work queue
client library to get work. Here it is: client library to get work. Here it is:
{{< code language="python" file="worker.py" >}} {{< code language="python" file="fine-parallel-processing-work-queue/worker.py" >}}
If you are working from the source tree, If you are working from the source tree,
change directory to the `docs/tasks/job/fine-parallel-processing-work-queue/` directory. change directory to the `docs/tasks/job/fine-parallel-processing-work-queue/` directory.
Otherwise, download [`worker.py`](worker.py?raw=true), [`rediswq.py`](rediswq.py?raw=true), and [`Dockerfile`](Dockerfile?raw=true) Otherwise, download [`worker.py`](fine-parallel-processing-work-queue/worker.py?raw=true), [`rediswq.py`](fine-parallel-processing-work-queue/rediswq.py?raw=true), and [`Dockerfile`](fine-parallel-processing-work-queue/Dockerfile?raw=true)
using above links. Then build the image: using above links. Then build the image:
```shell ```shell
@@ -1,5 +1,6 @@
--- ---
title: Parallel Processing using Expansions title: Parallel Processing using Expansions
weight: 20
--- ---
{{< toc >}} {{< toc >}}