Skip to content

Commit

Permalink
graph and job apidoc fixes (#7673)
Browse files Browse the repository at this point in the history
  • Loading branch information
sryza committed May 2, 2022
1 parent d79bb7b commit 0422087
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
13 changes: 12 additions & 1 deletion docs/sphinx/sections/api/apidocs/graphs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Graphs
======

The replacement for :py:class:`composite_solid` / :py:class:`CompositeSolidDefinition` . It has a more intuitive name and there is no longer a distinction between a graph for execution (pipeline) and a graph for composition (composite solid).
The core of a job is a _graph_ of ops - connected via data dependencies.

.. currentmodule:: dagster

Expand All @@ -14,3 +14,14 @@ The replacement for :py:class:`composite_solid` / :py:class:`CompositeSolidDefin
.. autoclass:: GraphIn

.. autoclass:: GraphOut


Explicit dependencies
------------------------
.. currentmodule:: dagster

.. autoclass:: DependencyDefinition

.. autoclass:: MultiDependencyDefinition

.. autoclass:: NodeInvocation
2 changes: 1 addition & 1 deletion docs/sphinx/sections/api/apidocs/jobs.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Jobs
====

The replacement for :py:class:`pipeline` / :py:class:`PipelineDefinition`, a ``Job`` binds a ``Graph`` and the resources it needs to be executable.
A ``Job`` binds a ``Graph`` and the resources it needs to be executable.

Jobs are created by calling :py:meth:`GraphDefinition.to_job` on a graph instance, or using the :py:class:`job` decorator.

Expand Down
16 changes: 7 additions & 9 deletions docs/sphinx/sections/api/apidocs/pipeline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ Reconstructable pipelines
.. autoclass:: ReconstructablePipeline
:members:

Dependencies and aliases
------------------------
.. currentmodule:: dagster

.. autoclass:: DependencyDefinition

.. autoclass:: MultiDependencyDefinition

.. autoclass:: SolidInvocation

Pipeline configuration
----------------------
Expand Down Expand Up @@ -129,3 +120,10 @@ Run Config Schema
},

}

Aliases
-------

.. currentmodule:: dagster

.. autoclass:: SolidInvocation
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class NodeInvocation(
:py:func:`@job <job>` API:
.. code-block:: python
from dagster import job
@job
Expand Down

1 comment on commit 0422087

@vercel
Copy link

@vercel vercel bot commented on 0422087 May 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.