Astro-provider-ray

Latest version: v0.3.1

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.1

------------------

**Bug fixes**

* Fix headers conversion from connection from string to dictionary by venkatajagannath in `124 <https://github.com/astronomer/astro-provider-ray/pull/124>`_.
* Fix ``RayHook`` ``conn_name_attr`` by tatiana in `106 <https://github.com/astronomer/astro-provider-ray/pull/106>`_.
* Change ``gpu_device_plugin_yaml`` default value by tatiana in `107 <https://github.com/astronomer/astro-provider-ray/pull/107>`_.

**Docs**

* Add privacy policy and tracking pixel to docs for website analytics by cmarteepants in `110 <https://github.com/astronomer/astro-provider-ray/pull/110>`_.

**Others**

* Upgrade GitHub action artifacts upload-artifact & download-artifact to v4 by pankajkoti in `111 <https://github.com/astronomer/astro-provider-ray/pull/111>`_.
* Add Dependabot configuration by tatiana in `112 <https://github.com/astronomer/astro-provider-ray/pull/112>`_.
* Bump GitHub actions by dependabot in 114, 115, 116, 117, 118, 121

0.3.0

---------------------

**Breaking changes**

* Simplify the project structure and debugging by tatiana in `93 <https://github.com/astronomer/astro-provider-ray/pull/93>`_.

In order to improve the development and troubleshooting DAGs created with this provider, we introduced breaking changes
to the folder structure. It was flattened and the import paths to existing decorators, hooks, operators and trigger
changed, as documented in the table below:

+-----------+---------------------------------------------+-----------------------------------------+
| Type | Previous import path | Current import path |
+===========+=============================================+=========================================+
| Decorator | ray_provider.decorators.ray.ray | ray_provider.decorators.ray |
| Hook | ray_provider.hooks.ray.RayHook | ray_provider.hooks.RayHook |
| Operator | ray_provider.operators.ray.DeleteRayCluster | ray_provider.operators.DeleteRayCluster |
| Operator | ray_provider.operators.ray.SetupRayCluster | ray_provider.operators.SetupRayCluster |
| Operator | ray_provider.operators.ray.SubmitRayJob | ray_provider.operators.SubmitRayJob |
| Trigger | ray_provider.triggers.ray.RayJobTrigger | ray_provider.triggers.RayJobTrigger |
+-----------+---------------------------------------------+-----------------------------------------+

* Removal of ``SubmitRayJob.terminal_states``. The same values are now available at ``ray_provider.constants.TERMINAL_JOB_STATUSES``. This change introduced in `100 <https://github.com/astronomer/astro-provider-ray/pull/100>`_.

**Features**

* Support using callable ``config`` in ``ray.task`` by tatiana in `103 <https://github.com/astronomer/astro-provider-ray/pull/103>`_.
* Support running Ray jobs indefinitely without timing out by venkatajagannath and tatiana in `74 <https://github.com/astronomer/astro-provider-ray/pull/74>`_.

**Bug fixes**

* Fix integration test and bug in load balancer wait logic by pankajastro in `85 <https://github.com/astronomer/astro-provider-ray/pull/85>`_
* Bugfix: Better exception handling and cluster clean up by venkatajagannath in `68 <https://github.com/astronomer/astro-provider-ray/pull/68>`_
* Stop catching generic ``Exception`` in operators by tatiana in `100 <https://github.com/astronomer/astro-provider-ray/pull/100>`_
* Stop catching generic ``Exception`` in trigger by tatiana in `99 <https://github.com/astronomer/astro-provider-ray/pull/99>`_

**Docs**

* Add docs to deploy project on Astro Cloud by pankajastro in `90 <https://github.com/astronomer/astro-provider-ray/pull/90>`_
* Fix dead reference in docs index page by pankajastro in `87 <https://github.com/astronomer/astro-provider-ray/pull/87>`_
* Cloud Auth documentation update by venkatajagannath in `58 <https://github.com/astronomer/astro-provider-ray/pull/58>`_
* Improve main docs page by TJaniF in `71 <https://github.com/astronomer/astro-provider-ray/pull/71>`_

**Others**

Local development

* Fix the local development environment and update documentation by tatiana in `92 <https://github.com/astronomer/astro-provider-ray/pull/92>`_
* Enable secret detection precommit check by pankajastro in `91 <https://github.com/astronomer/astro-provider-ray/pull/91>`_
* Add astro cli project + kind Raycluster setup instruction by pankajastro in `83 <https://github.com/astronomer/astro-provider-ray/pull/83>`_
* Remove pytest durations from tests by tatiana in `102 <https://github.com/astronomer/astro-provider-ray/pull/102>`_
* Fix running make docker-run when there is a new version by tatiana in 99 and `101 <https://github.com/astronomer/astro-provider-ray/pull/101>`_
* Improve Astro CLI DAGs test so running hatch test-cov locally doesn't fail by tatiana in `97 <https://github.com/astronomer/astro-provider-ray/pull/97>`_

CI

* CI improvement by venkatajagannath in `73 <https://github.com/astronomer/astro-provider-ray/pull/73>`_
* CI fix related to broken coverage upload artifact by pankajkoti in `60 <https://github.com/astronomer/astro-provider-ray/pull/60>`_
* Allow tests to run for PRs from forked repos by venkatajagannath in `72 <https://github.com/astronomer/astro-provider-ray/pull/72>`_
* Update CODEOWNERS by tatiana in `84 <https://github.com/astronomer/astro-provider-ray/pull/84>`_
* Add Airflow 2.10 (released in August 2024) to tests by tatiana in `96 <https://github.com/astronomer/astro-provider-ray/pull/96>`_

0.2.1

------------------

**Bug fixes**
Namespace variable initialized in init method is not used in setup_ray_cluster and delete_ray_cluster methods
CI/CD pipeline broken due to sudden github action breaking change

0.2.0

------------------

by venkatajagannath in 50

**Breaking changes**

- We removed the "use_gpu" input parameter from the SetupRayCluster and DeleteRayCluster operators. GPU drivers get installed if GPU nodes are available
- Spelling correction in the ``SubmitRayJob``operator. Changed "self.terminal _state" to "self.terminal_states"

**Enhancements to the SubmitRayJob operator**

Based on customer feedback, we learnt that it would be a much easier UX to spin up/down the cluster in the background of a task. The user would simply decorate their python function with ray.task and the decorator would orchestrate the rest.

To enable this feature, we had to make changes to the code for SetupRayCluster and DeleteRayCluster operators. Making these changes helps us avoid duplication.

Following new input params added to enable this change -- ray_cluster_yaml, kuberay_version, update_if_exists, gpu_device_plugin_yaml

**Add more more example DAGs**

Earlier we had only 2 example dags. We now have 4. And we execute a different DAG for integration test.

**Making the Decorator more robust**

We made some changes to the decorator source code to make it more robust

**Unit tests updated**

Added unit tests where necessary and deleted where unnecessary. Updated where required.

**Documentation improvements**

- Significant changes to code samples section of the github page to make it easier to navigate
- Added two additional code samples along with explanation
- Added Getting Involved section to both Readme and Index.rst along with box formatting
- Some other minor changes

0.1.0

------------------

* Initial release, with the following decorators, hooks, operators, and triggers:

.. list-table::
:header-rows: 1

* - Hook Class
- Import Path

* - ``RayHook``
- .. code-block:: python

from ray_provider.hooks.ray import RayHook

.. list-table::
:header-rows: 1

* - Decorator Class
- Import Path

* - ``ray.task()``
- .. code-block:: python

from ray_provider.decorators.ray import ray

.. list-table::
:header-rows: 1

* - Operator Class
- Import Path

* - ``SetupRayCluster``
- .. code-block:: python

from ray_provider.operators.ray import SetupRayCluster

* - ``DeleteRayCluster``
- .. code-block:: python

from ray_provider.operators.ray import DeleteRayCluster

* - ``SubmitRayJob``
- .. code-block:: python

from ray_provider.operators.ray import SubmitRayJob

.. list-table::
:header-rows: 1

* - Trigger Class
- Import Path

* - ``RayJobTrigger``
- .. code-block:: python

from ray_provider.triggers.ray import RayJobTrigger

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.