Skip to content

Commit

Permalink
Bump versions and changelog for release v2.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmello committed Jun 20, 2024
1 parent 990d074 commit a499a49
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 57 deletions.
40 changes: 0 additions & 40 deletions changelog.d/20240423_142117_yadudoc1729_gce_working_dir.rst

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion compute_endpoint/globus_compute_endpoint/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# single source of truth for package version,
# see https://packaging.python.org/en/latest/single_source_version/
__version__ = "2.22.0a0"
__version__ = "2.22.0"

# TODO: remove after a `globus-compute-sdk` release
# this is needed because it's imported by `globus-compute-sdk` to do the version check
Expand Down
2 changes: 1 addition & 1 deletion compute_endpoint/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
REQUIRES = [
"requests>=2.31.0,<3",
"globus-sdk", # version will be bounded by `globus-compute-sdk`
"globus-compute-sdk==2.22.0a0",
"globus-compute-sdk==2.22.0",
"globus-compute-common==0.4.1",
"globus-identity-mapping==0.3.0",
# table printing used in list-endpoints
Expand Down
2 changes: 1 addition & 1 deletion compute_sdk/globus_compute_sdk/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# single source of truth for package version,
# see https://packaging.python.org/en/latest/single_source_version/
__version__ = "2.22.0a0"
__version__ = "2.22.0"


def compare_versions(
Expand Down
58 changes: 58 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,64 @@ Changelog

.. scriv-insert-here
.. _changelog-2.22.0:

globus-compute-sdk & globus-compute-endpoint v2.22.0
----------------------------------------------------

New Functionality
^^^^^^^^^^^^^^^^^

- ``GlobusComputeEngine`` now supports a ``working_dir`` keyword argument that sets the directory in which
all functions will be executed. Relative paths, if set, will be considered relative to the endpoint directory
(``~/.globus_compute/<endpoint_name>``). If this option is not set, ``GlobusComputeEngine`` will use the
endpoint directory as the working directory. Set this option using ``working_dir: <working_dir_path>``
Example config:

.. code-block:: yaml
display_name: WorkingDirExample
engine:
type: GlobusComputeEngine
# Run functions in ~/.globus_compute/<EP_NAME>/TASKS
working_dir: TASKS
- ``GlobusComputeEngine`` now supports function sandboxing, where each function is executed within a
sandbox directory for better isolation. When this option is enabled by setting ``run_in_sandbox: True``
a new directory with the function UUID as the name is created in the working directory (configurable with
the ``working_dir`` kwarg). Example config:

.. code-block:: yaml
display_name: WorkingDirExample
engine:
type: GlobusComputeEngine
# Set working dir to /projects/MY_PROJ
working_dir: /projects/MY_PROJ
# Enable sandboxing to have functions run under /projects/MY_PROJ/<function_uuid>/
run_in_sandbox: True
- Implement ``debug`` as a top-level config boolean for a Compute Endpoint.
This flag determines whether debug-level logs are emitted -- the same
functionality as the ``--debug`` command line argument to the
``globus-compute-endpoint`` executable. Note: if this flag is set to
``False`` when the ``--debug`` CLI flag is specified, the CLI wins.

Bug Fixes
^^^^^^^^^

- Fixed bug where ``GlobusComputeEngine`` set the current working directory to the directory
from which the endpoint was started. Now, ``GlobusComputeEngine`` will set the working directory
to the endpoint directory (``~/.globus_compute/<endpoint_name>``) by default. This can be configured
via the endpoint config.

Changed
^^^^^^^

- Updated the Compute hosted services to use AMQP over port 443 by default, instead of
the standard 5671. This can still be overridden in both the SDK and the Endpoint via
``amqp_port``.

.. _changelog-2.21.0:

globus-compute-sdk & globus-compute-endpoint v2.21.0
Expand Down

0 comments on commit a499a49

Please sign in to comment.