globus / globus-compute

Globus Compute: High Performance Function Serving for Science
https://www.globus.org/compute
Apache License 2.0
148 stars 47 forks source link

Enable working_dir configurability and safety #1689

Closed yadudoc closed 1 week ago

yadudoc commented 1 month ago

Description

Currently ThreadPoolEngine and ProcessPoolEngine now pass the working_dir: default tasks_working_dir. Executing functions on these engines affect subsequent function execution when they say change directory for eg, unlike GlobusComputeEngine. When executing functions, our execute_task wrapper currently attempts to look for a tasks_working_dir in the current dir, creates it if not present, and then switches into it. Unfortunately, each subsequent function finds itself one directory deeper.

Fixes # (issue)

[sc-36710]

Type of change

Choose which options apply, and delete the ones which do not apply.