From 4e0ef3cddf33044d742e3e70ed2adada6522b757 Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Thu, 16 Mar 2017 12:56:44 -0700 Subject: [PATCH] Rename /docs/tasks/job/work-queue-1/ --- _data/tasks.yml | 2 +- docs/concepts/jobs/run-to-completion-finite-workloads.md | 4 ++-- .../Dockerfile | 0 .../index.md | 4 ++-- .../job.yaml | 0 .../worker.py | 0 docs/user-guide/jobs/work-queue-1/index.md | 2 +- test/examples_test.go | 2 +- 8 files changed, 7 insertions(+), 7 deletions(-) rename docs/tasks/job/{work-queue-1 => coarse-parallel-processing-work-queue}/Dockerfile (100%) rename docs/tasks/job/{work-queue-1 => coarse-parallel-processing-work-queue}/index.md (98%) rename docs/tasks/job/{work-queue-1 => coarse-parallel-processing-work-queue}/job.yaml (100%) rename docs/tasks/job/{work-queue-1 => coarse-parallel-processing-work-queue}/worker.py (100%) diff --git a/_data/tasks.yml b/_data/tasks.yml index 47f8c37271..fd317a282d 100644 --- a/_data/tasks.yml +++ b/_data/tasks.yml @@ -34,7 +34,7 @@ toc: - title: Running Jobs section: - docs/tasks/job/parallel-processing-expansion.md - - docs/tasks/job/work-queue-1/index.md + - docs/tasks/job/coarse-parallel-processing-work-queue/index.md - docs/tasks/job/fine-parallel-processing-work-queue/index.md - title: Accessing Applications in a Cluster diff --git a/docs/concepts/jobs/run-to-completion-finite-workloads.md b/docs/concepts/jobs/run-to-completion-finite-workloads.md index 55c478ceba..4ffe4aefbf 100644 --- a/docs/concepts/jobs/run-to-completion-finite-workloads.md +++ b/docs/concepts/jobs/run-to-completion-finite-workloads.md @@ -262,7 +262,7 @@ The pattern names are also links to examples and more detailed description. | Pattern | Single Job object | Fewer pods than work items? | Use app unmodified? | Works in Kube 1.1? | | -------------------------------------------------------------------- |:-----------------:|:---------------------------:|:-------------------:|:-------------------:| | [Job Template Expansion](/docs/user-guide/jobs/expansions) | | | ✓ | ✓ | -| [Queue with Pod Per Work Item](/docs/tasks/job/work-queue-1/) | ✓ | | sometimes | ✓ | +| [Queue with Pod Per Work Item](/docs/tasks/job/coarse-parallel-processing-work-queue/) | ✓ | | sometimes | ✓ | | [Queue with Variable Pod Count](/docs/tasks/job/fine-parallel-processing-work-queue/) | ✓ | ✓ | | ✓ | | Single Job with Static Work Assignment | ✓ | | ✓ | | @@ -278,7 +278,7 @@ Here, `W` is the number of work items. | Pattern | `.spec.completions` | `.spec.parallelism` | | -------------------------------------------------------------------- |:-------------------:|:--------------------:| | [Job Template Expansion](/docs/tasks/job/parallel-processing-expansion/) | 1 | should be 1 | -| [Queue with Pod Per Work Item](/docs/tasks/job/work-queue-1/) | W | any | +| [Queue with Pod Per Work Item](/docs/tasks/job/coarse-parallel-processing-work-queue/) | W | any | | [Queue with Variable Pod Count](/docs/tasks/job/fine-parallel-processing-work-queue/) | 1 | any | | Single Job with Static Work Assignment | W | any | diff --git a/docs/tasks/job/work-queue-1/Dockerfile b/docs/tasks/job/coarse-parallel-processing-work-queue/Dockerfile similarity index 100% rename from docs/tasks/job/work-queue-1/Dockerfile rename to docs/tasks/job/coarse-parallel-processing-work-queue/Dockerfile diff --git a/docs/tasks/job/work-queue-1/index.md b/docs/tasks/job/coarse-parallel-processing-work-queue/index.md similarity index 98% rename from docs/tasks/job/work-queue-1/index.md rename to docs/tasks/job/coarse-parallel-processing-work-queue/index.md index 34119e73d9..12bda5e737 100644 --- a/docs/tasks/job/work-queue-1/index.md +++ b/docs/tasks/job/coarse-parallel-processing-work-queue/index.md @@ -167,7 +167,7 @@ We will use the `amqp-consume` utility to read the message from the queue and run our actual program. Here is a very simple example program: -{% include code.html language="python" file="worker.py" ghlink="/docs/tasks/job/work-queue-1/worker.py" %} +{% include code.html language="python" file="worker.py" ghlink="/docs/tasks/job/coarse-parallel-processing-work-queue/worker.py" %} Now, build an image. If you are working in the source tree, then change directory to `examples/job/work-queue-1`. @@ -205,7 +205,7 @@ Here is a job definition. You'll need to make a copy of the Job and edit the image to match the name you used, and call it `./job.yaml`. -{% include code.html language="yaml" file="job.yaml" ghlink="/docs/tasks/job/work-queue-1/job.yaml" %} +{% include code.html language="yaml" file="job.yaml" ghlink="/docs/tasks/job/coarse-parallel-processing-work-queue/job.yaml" %} In this example, each pod works on one item from the queue and then exits. So, the completion count of the Job corresponds to the number of work items diff --git a/docs/tasks/job/work-queue-1/job.yaml b/docs/tasks/job/coarse-parallel-processing-work-queue/job.yaml similarity index 100% rename from docs/tasks/job/work-queue-1/job.yaml rename to docs/tasks/job/coarse-parallel-processing-work-queue/job.yaml diff --git a/docs/tasks/job/work-queue-1/worker.py b/docs/tasks/job/coarse-parallel-processing-work-queue/worker.py similarity index 100% rename from docs/tasks/job/work-queue-1/worker.py rename to docs/tasks/job/coarse-parallel-processing-work-queue/worker.py diff --git a/docs/user-guide/jobs/work-queue-1/index.md b/docs/user-guide/jobs/work-queue-1/index.md index a75dfb537d..bbdb58d5b1 100644 --- a/docs/user-guide/jobs/work-queue-1/index.md +++ b/docs/user-guide/jobs/work-queue-1/index.md @@ -4,4 +4,4 @@ title: Coarse Parallel Processing using a Work Queue {% include user-guide-content-moved.md %} -[Coarse Parallel Processing Using a Work Queue](/docs/tasks/job/work-queue-1/) +[Coarse Parallel Processing Using a Work Queue](/docs/tasks/job/coarse-parallel-processing-work-queue/) diff --git a/test/examples_test.go b/test/examples_test.go index 0b11860677..e9855bdeef 100644 --- a/test/examples_test.go +++ b/test/examples_test.go @@ -247,7 +247,7 @@ func TestExampleObjectSchemas(t *testing.T) { "http-liveness": {&api.Pod{}}, "http-liveness-named-port": {&api.Pod{}}, }, - "../docs/tasks/job/work-queue-1": { + "../docs/tasks/job/coarse-parallel-processing-work-queue": { "job": {&batch.Job{}}, }, "../docs/tasks/job/fine-parallel-processing-work-queue": {