Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
benclifford committed Apr 29, 2024
1 parent fc45588 commit 7a64b9c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions parsl/dataflow/dependency_resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@

@dataclass
class DependencyResolver:
"""A DependencyResolver describes how app dependencies can be resolved.
It is specified as two functions: `traverse_to_gather` which turns an
app parameter into a list of futures which must be waited for before
the task can be executed (for example, in the case of
`DEEP_DEPENDENCY_RESOLVER` this traverses structures such as lists to
find every contained ``Future``), and `traverse_to_unwrap` which turns ani
app parameter into it's value to be passed to the app on execution
(for example in the case of `DEEP_DEPENDENCY_RESOLVER` this replaces a
list containing futures with a new list containing the values of those
resolved futures).
By default, Parsl will use `SHALLOW_DEPENDENCY_RESOLVER` which only
resolves Futures passed directly as arguments.
"""
traverse_to_gather: Callable
traverse_to_unwrap: Callable

Expand Down

0 comments on commit 7a64b9c

Please sign in to comment.