Skip to content

Commit

Permalink
Add PERIAN agent docs (#2816)
Browse files Browse the repository at this point in the history
Signed-off-by: Omar Tarabai <omar@tarabai.com>
  • Loading branch information
otarabai authored Oct 15, 2024
1 parent 5fe2ee3 commit f164191
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/source/plugins/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Plugin API reference
* :ref:`Modin <modin>` - Modin API reference
* :ref:`Pandera <pandera>` - Pandera API reference
* :ref:`Papermill <papermill>` - Papermill API reference
* :ref:`PERIAN <perian>` - PERIAN Job Platform API reference
* :ref:`Snowflake <snowflake>` - Snowflake API reference
* :ref:`Spark <spark>` - Spark API reference
* :ref:`SQLAlchemy <sqlalchemy>` - SQLAlchemy API reference
Expand Down Expand Up @@ -55,6 +56,7 @@ Plugin API reference
Modin <modin>
Pandera <pandera>
Papermill <papermill>
PERIAN <perian>
Snowflake <snowflake>
Spark <spark>
SQLAlchemy <sqlalchemy>
Expand Down
12 changes: 12 additions & 0 deletions docs/source/plugins/perian.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _perian:

###################################################
PERIAN Job Platform API reference
###################################################

.. tags:: Cloud, GPU, Integration, Advanced

.. automodule:: flytekitplugins.perian_job
:no-members:
:no-inherited-members:
:no-special-members:
12 changes: 12 additions & 0 deletions plugins/flytekit-perian/flytekitplugins/perian_job/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
"""
.. currentmodule:: flytekitplugins.perian_job
.. autosummary::
:template: custom.rst
:toctree: generated/
PerianAgent
PerianConfig
PerianTask
"""

from .agent import PerianAgent
from .task import PerianConfig, PerianTask
4 changes: 2 additions & 2 deletions plugins/flytekit-perian/flytekitplugins/perian_job/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@

@dataclass
class PerianMetadata(ResourceMeta):
"""Metadata for Perian jobs"""
"""Metadata for PERIAN jobs"""

job_id: str


class PerianAgent(AsyncAgentBase):
"""Flyte Agent for executing tasks on Perian"""
"""Flyte Agent for executing tasks on PERIAN Job Platform"""

name = "Perian Agent"

Expand Down
2 changes: 1 addition & 1 deletion plugins/flytekit-perian/flytekitplugins/perian_job/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PerianConfig:


class PerianTask(AsyncAgentExecutorMixin, PythonFunctionTask):
"""A special task type for running tasks on Perian Job Platform (perian.io)"""
"""A special task type for running tasks on PERIAN Job Platform (perian.io)"""

_TASK_TYPE = "perian_task"

Expand Down

0 comments on commit f164191

Please sign in to comment.