Skip to content

Commit aad957e

Browse files
committed
Re-organize page components for jobs docs.
1 parent 9d94589 commit aad957e

File tree

10 files changed

+26
-24
lines changed

10 files changed

+26
-24
lines changed

docs/source/user_guide/jobs/_template/runtime_types.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* :py:class:`~ads.jobs.PythonRuntime`
2+
for Python code stored locally, OCI object storage, or other remote location supported by
3+
`fsspec <https://filesystem-spec.readthedocs.io/en/latest/>`_. See :doc:`run_python`.
4+
* :py:class:`~ads.jobs.GitPythonRuntime`
5+
for Python code from a Git repository. See :doc:`run_git`.
6+
* :py:class:`~ads.jobs.NotebookRuntime`
7+
for a single Jupyter notebook stored locally, OCI object storage, or other remote location supported by
8+
`fsspec <https://filesystem-spec.readthedocs.io/en/latest/>`_. See :doc:`run_notebook`.
9+
* :py:class:`~ads.jobs.ScriptRuntime`
10+
for bash or shell scripts stored locally, OCI object storage, or other remote location supported by
11+
`fsspec <https://filesystem-spec.readthedocs.io/en/latest/>`_. See :doc:`run_script`.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. include:: ../jobs/components/runtime_non_byoc.rst
2+
* :py:class:`~ads.jobs.ContainerRuntime` for container images.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. contents:: In this Page
2+
:depth: 2
3+
:local:
4+
:backlinks: none
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
.. _jobs-1:
2-
31
#################
42
Data Science Jobs
53
#################
64

7-
.. include:: ../jobs/overview.rst
5+
.. include:: ../jobs/components/overview.rst
86

97
.. include:: ../jobs/toc.rst

docs/source/user_guide/jobs/infrastructure.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Infrastructure
44
The Data Science Job infrastructure is defined by a :py:class:`~ads.jobs.DataScienceJob` instance.
55
For example:
66

7-
87
.. code-block:: python3
98
109
from ads.jobs import DataScienceJob

docs/source/user_guide/jobs/runtime.rst

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,17 @@ Runtime
44
The *runtime* of a job defines the source code of your workload, environment variables, CLI arguments
55
and other configurations for the environment to run the workload.
66

7+
.. include:: ../jobs/components/toc_local.rst
8+
79
Depending on the source code, ADS provides different types of *runtime* for defining a data science job,
810
including:
911

10-
* :py:class:`~ads.jobs.PythonRuntime`
11-
for Python code stored locally, OCI object storage, or other remote location supported by
12-
`fsspec <https://filesystem-spec.readthedocs.io/en/latest/>`_
13-
* :py:class:`~ads.jobs.GitPythonRuntime`
14-
for Python code from a Git repository.
15-
* :py:class:`~ads.jobs.NotebookRuntime`
16-
for a single Jupyter notebook stored locally, OCI object storage, or other remote location supported by
17-
`fsspec <https://filesystem-spec.readthedocs.io/en/latest/>`_
18-
* :py:class:`~ads.jobs.ScriptRuntime`
19-
for bash or shell scripts stored locally, OCI object storage, or other remote location supported by
20-
`fsspec <https://filesystem-spec.readthedocs.io/en/latest/>`_
21-
* :py:class:`~ads.jobs.ContainerRuntime` for container images.
12+
.. include:: ../jobs/components/runtime_types.rst
2213

2314

2415
Environment Variables
2516
=====================
17+
2618
You can set environment variables for a runtime by calling
2719
:py:meth:`~ads.jobs.PythonRuntime.with_environment_variable()`.
2820
Environment variables enclosed by ``${...}`` will be substituted. For example:
@@ -159,8 +151,8 @@ For more details on custom conda environment, see
159151
<https://docs.oracle.com/en-us/iaas/data-science/using/conda_publishs_object.htm>`__.
160152

161153

162-
Override Configuration
163-
======================
154+
Override Configurations
155+
=======================
164156

165157
When you call :py:meth:`ads.jobs.Job.run`, a new job run will be started with the configuration defined in the **job**.
166158
You may want to override the configuration with custom variables. For example,

docs/source/user_guide/model_training/training_with_oci.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
Training with OCI
33
#################
44

5-
.. include:: ../jobs/overview.rst
5+
.. include:: ../jobs/components/overview.rst
66

77
.. include:: ../jobs/toc.rst

docs/source/user_guide/pipeline/pipeline_step.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ When constructing a Custom Scrip step ``infrastructure``, you specify the Comput
9393

9494
A Custom Script step can have different types of ``runtime`` depending on the source code you run:
9595

96-
.. include:: ../jobs/_template/runtime_types.rst
96+
.. include:: ../jobs/components/runtime_non_byoc.rst
9797

9898
All of these runtime options allow you to configure a `Data Science Conda Environment <https://docs.oracle.com/iaas/data-science/using/conda_understand_environments.htm>`__ for running your code.
9999

0 commit comments

Comments
 (0)