-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add working_dir kwarg to GlobusComputeEngineBase
`ThreadPoolEngine` and `ProcessPoolEngine` now pass the `working_dir` default `"tasks_working_dir"` to the `GlobusComputeEngineBase`, which makes the path absolute. When `execute_task` runs the cwd is changed to `working_dir`, ensuring that tasks run in the same directory. * Added a new method `GlobusComputeEngineBase.set_working_dir()` to ensure `working_dir` is absolute. * Enforce absolute paths for `run_dir` in `execute_task()` * Removed an obsolete test
- Loading branch information
1 parent
f75edc6
commit 1cd2f0d
Showing
12 changed files
with
182 additions
and
68 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
changelog.d/20241023_095610_yadudoc1729_configure_tasks_working_dir.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
New Functionality | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
- ``GlobusComputeEngine``, ``ThreadPoolEngine``, and ``ProcessPoolEngine`` can | ||
now be configured with ``working_dir`` to specify the tasks working directory. | ||
If a relative path is specified, it is set in relation to the endpoint | ||
run directory (usually ``~/.globus_compute/<endpoint_name>``). Here's an example | ||
config file: | ||
|
||
.. code-block:: yaml | ||
engine: | ||
type: GlobusComputeEngine | ||
working_dir: /absolute/path/to/tasks_working_dir | ||
Bug Fixes | ||
^^^^^^^^^ | ||
|
||
- Fixed a bug where functions run with ``ThreadPoolEngine`` and ``ProcessPoolEngine`` | ||
create and switch into the ``tasks_working_dir`` creating endless nesting. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.